[geany/geany] 903133: Set prefs' encoding combo boxes "wrap with" in the Glade file directly

Colomban Wendling git-noreply at xxxxx
Thu Jul 26 00:03:04 UTC 2012


Branch:      refs/heads/document-messages
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Fri, 20 Jan 2012 18:31:57
Commit:      9031335971a0f26625b3494d99b668c3af6befe0
             https://github.com/geany/geany/commit/9031335971a0f26625b3494d99b668c3af6befe0

Log Message:
-----------
Set prefs' encoding combo boxes "wrap with" in the Glade file directly


Modified Paths:
--------------
    data/geany.glade
    src/prefs.c

Modified: data/geany.glade
2 files changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -4266,6 +4266,7 @@
                                         <property name="visible">True</property>
                                         <property name="can_focus">False</property>
                                         <property name="model">encoding_list</property>
+                                        <property name="wrap_width">3</property>
                                         <child>
                                           <object class="GtkCellRendererText" id="cellrenderertext6"/>
                                           <attributes>
@@ -4332,6 +4333,7 @@
                                         <property name="visible">True</property>
                                         <property name="can_focus">False</property>
                                         <property name="model">encoding_list</property>
+                                        <property name="wrap_width">3</property>
                                         <child>
                                           <object class="GtkCellRendererText" id="cellrenderertext7"/>
                                           <attributes>


Modified: src/prefs.c
5 files changed, 0 insertions(+), 5 deletions(-)
===================================================================
@@ -1602,7 +1602,6 @@ void prefs_show_dialog(void)
 {
 	if (ui_widgets.prefs_dialog == NULL)
 	{
-		GtkWidget *combo_new, *combo_open;
 		GtkListStore *encoding_list, *eol_list;
 		GtkWidget *label;
 		guint i;
@@ -1617,10 +1616,6 @@ void prefs_show_dialog(void)
 		g_object_unref(pb);	/* free our reference */
 
 		/* init the file encoding combo boxes */
-		combo_new = ui_lookup_widget(ui_widgets.prefs_dialog, "combo_new_encoding");
-		combo_open = ui_lookup_widget(ui_widgets.prefs_dialog, "combo_open_encoding");
-		gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(combo_new), 3);
-		gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(combo_open), 3);
 		encoding_list = ui_builder_get_object("encoding_list");
 		for (i = 0; i < GEANY_ENCODINGS_MAX; i++)
 		{


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Commits mailing list