From b42df335e2973d17f743e6b8c80f0de840b3816b Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Sun, 27 Feb 2005 20:18:45 +0000 Subject: [PATCH] moved a few lines of code around --- libgimpwidgets/gimpintcombobox.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libgimpwidgets/gimpintcombobox.c b/libgimpwidgets/gimpintcombobox.c index 34f06eb82c..8f3aee1b0a 100644 --- a/libgimpwidgets/gimpintcombobox.c +++ b/libgimpwidgets/gimpintcombobox.c @@ -169,16 +169,11 @@ gimp_int_combo_box_constructor (GType type, GObjectConstructParam *params) { GObject *object; - GtkListStore *store; GtkCellRenderer *cell; GimpIntComboBoxPrivate *priv; object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params); - store = gimp_int_store_new (); - gtk_combo_box_set_model (GTK_COMBO_BOX (object), GTK_TREE_MODEL (store)); - g_object_unref (store); - cell = gtk_cell_renderer_pixbuf_new (); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (object), cell, FALSE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (object), cell, @@ -207,8 +202,13 @@ static void gimp_int_combo_box_init (GimpIntComboBox *combo_box) { GimpIntComboBoxPrivate *priv = GIMP_INT_COMBO_BOX_GET_PRIVATE (combo_box); + GtkListStore *store; priv->ellipsize = PANGO_ELLIPSIZE_NONE; + + store = gimp_int_store_new (); + gtk_combo_box_set_model (GTK_COMBO_BOX (combo_box), GTK_TREE_MODEL (store)); + g_object_unref (store); }