[gedit] Populate the encodings when the widget is constructed.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gedit] Populate the encodings when the widget is constructed.
- Date: Sun, 23 Jan 2011 22:27:07 +0000 (UTC)
commit 37baadcd4790eb588fdc77d626a192a037639cc2
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Jan 23 23:27:40 2011 +0100
    Populate the encodings when the widget is constructed.
 gedit/gedit-encodings-combo-box.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-encodings-combo-box.c b/gedit/gedit-encodings-combo-box.c
index abe7a5e..439b251 100644
--- a/gedit/gedit-encodings-combo-box.c
+++ b/gedit/gedit-encodings-combo-box.c
@@ -158,6 +158,8 @@ gedit_encodings_combo_box_constructed (GObject *object)
 					NAME_COLUMN,
 					NULL);
 
+	update_menu (combo);
+
 	G_OBJECT_CLASS (gedit_encodings_combo_box_parent_class)->constructed (object);
 }
 
@@ -424,8 +426,6 @@ gedit_encodings_combo_box_init (GeditEncodingsComboBox *menu)
 	menu->priv->changed_id = g_signal_connect (menu, "changed",
 						   G_CALLBACK (add_or_remove),
 						   menu->priv->store);
-
-	update_menu (menu);
 }
 
 GtkWidget *
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]