All pastes #895789 Raw Edit

stardict gtk_label patch

public text v1 · immutable
·published 2008-02-08 02:14 UTC
rendered paste body
diff -uarN stardict-3.0.0.orig/src/prefsdlg.cpp stardict-3.0.0/src/prefsdlg.cpp
--- stardict-3.0.0.orig/src/prefsdlg.cpp        2007-08-10 08:08:45.000000000 +0200
+++ stardict-3.0.0/src/prefsdlg.cpp     2007-11-08 17:51:21.000000000 +0100
@@ -727,6 +727,7 @@
        gtk_box_pack_start(GTK_BOX(vbox),vbox1,false,false, 0);

        GtkWidget *check_button;
+       GtkWidget *label;
        check_button = gtk_check_button_new_with_mnemonic(_("_Enable sound event."));
        bool enable=
                conf->get_bool_at("dictionary/enable_sound_event");
@@ -748,7 +749,7 @@
        gtk_box_pack_start(GTK_BOX(vbox1), hbox2, FALSE, FALSE, 0);
 #endif

-       GtkWidget *label = gtk_label_new(_("RealPeopleTTS search path:"));
+       label = gtk_label_new(_("RealPeopleTTS search path:"));
        gtk_misc_set_alignment(GTK_MISC(label), 0, .5);
        gtk_box_pack_start(GTK_BOX(vbox1),label,false,false,0);
        tts_textview = gtk_text_view_new();