Set prefs' encoding combo boxes "wrap with" in the Glade file directly

This commit is contained in:
Colomban Wendling 2012-01-20 19:31:57 +01:00
parent 7f16b9a4fb
commit 9031335971
2 changed files with 2 additions and 5 deletions

View File

@ -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>

View File

@ -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++)
{