[gimp/gtk3-port: 254/457] libgimpwidgets: create GimpIntComboBox' cells in constructed() not init()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 254/457] libgimpwidgets: create GimpIntComboBox' cells in constructed() not init()
- Date: Sat, 19 May 2018 18:25:00 +0000 (UTC)
commit b4267d8a0305579aa89fa42d1e1306b7e1eed3c9
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 29 03:54:43 2018 +0200
libgimpwidgets: create GimpIntComboBox' cells in constructed() not init()
Apparently this now has to happen later due to some GTK+ change.
libgimpwidgets/gimpintcombobox.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimpintcombobox.c b/libgimpwidgets/gimpintcombobox.c
index e6fd764..d2c4fa8 100644
--- a/libgimpwidgets/gimpintcombobox.c
+++ b/libgimpwidgets/gimpintcombobox.c
@@ -72,6 +72,7 @@ typedef struct
((GimpIntComboBoxPrivate *) ((GimpIntComboBox *) (obj))->priv)
+static void gimp_int_combo_box_constructed (GObject *object);
static void gimp_int_combo_box_finalize (GObject *object);
static void gimp_int_combo_box_set_property (GObject *object,
guint property_id,
@@ -100,6 +101,7 @@ gimp_int_combo_box_class_init (GimpIntComboBoxClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ object_class->constructed = gimp_int_combo_box_constructed;
object_class->finalize = gimp_int_combo_box_finalize;
object_class->set_property = gimp_int_combo_box_set_property;
object_class->get_property = gimp_int_combo_box_get_property;
@@ -168,8 +170,14 @@ gimp_int_combo_box_init (GimpIntComboBox *combo_box)
g_object_unref (store);
priv->layout = GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED;
+}
+
+static void
+gimp_int_combo_box_constructed (GObject *object)
+{
+ G_OBJECT_CLASS (parent_class)->constructed (object);
- gimp_int_combo_box_create_cells (GIMP_INT_COMBO_BOX (combo_box));
+ gimp_int_combo_box_create_cells (GIMP_INT_COMBO_BOX (object));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]