[gedit] encodings-combo-box: chain up constructed() at the beginning



commit f012999aebefd226fa04a35b71506d4b67dd99dd
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jul 19 23:08:00 2014 +0200

    encodings-combo-box: chain up constructed() at the beginning
    
    GtkComboBox's constructor() has been replaced recently by constructed().
    Since constructor() is called before constructed(), it is needed to
    chain up to the parent constructed() at the beginning of the function,
    not at the end.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733422

 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 0d54c83..974e361 100644
--- a/gedit/gedit-encodings-combo-box.c
+++ b/gedit/gedit-encodings-combo-box.c
@@ -124,6 +124,8 @@ gedit_encodings_combo_box_constructed (GObject *object)
        GeditEncodingsComboBox *combo = GEDIT_ENCODINGS_COMBO_BOX (object);
        GtkCellRenderer *text_renderer;
 
+       G_OBJECT_CLASS (gedit_encodings_combo_box_parent_class)->constructed (object);
+
        /* Setup up the cells */
        text_renderer = gtk_cell_renderer_text_new ();
        gtk_cell_layout_pack_end (GTK_CELL_LAYOUT (combo),
@@ -136,8 +138,6 @@ gedit_encodings_combo_box_constructed (GObject *object)
                                        NULL);
 
        update_menu (combo);
-
-       G_OBJECT_CLASS (gedit_encodings_combo_box_parent_class)->constructed (object);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]