[gtkhtml/gnome-3-12] Add forgotten chain-up-s to parent's constructed() method
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml/gnome-3-12] Add forgotten chain-up-s to parent's constructed() method
- Date: Thu, 17 Jul 2014 08:47:43 +0000 (UTC)
commit 85b04c935904212ba1a5827fdc83e22cc7633606
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 17 10:43:52 2014 +0200
Add forgotten chain-up-s to parent's constructed() method
This stroke with gtk+ 3.13.4, where GtkComboBox relies on
the constructed() being called. It was reported in Red Hat's
bugzilla as https://bugzilla.redhat.com/show_bug.cgi?id=1120291
components/editor/gtkhtml-combo-box.c | 3 +++
components/editor/gtkhtml-image-chooser-dialog.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/components/editor/gtkhtml-combo-box.c b/components/editor/gtkhtml-combo-box.c
index ea46e42..d6a2064 100644
--- a/components/editor/gtkhtml-combo-box.c
+++ b/components/editor/gtkhtml-combo-box.c
@@ -282,6 +282,9 @@ combo_box_constructed (GObject *object)
combo_box = GTK_COMBO_BOX (object);
+ /* Chain up to parent's method. */
+ G_OBJECT_CLASS (parent_class)->constructed (object);
+
/* This needs to happen after constructor properties are set
* so that GtkCellLayout.get_area() returns something valid. */
diff --git a/components/editor/gtkhtml-image-chooser-dialog.c
b/components/editor/gtkhtml-image-chooser-dialog.c
index 90d4bc4..2b31d9a 100644
--- a/components/editor/gtkhtml-image-chooser-dialog.c
+++ b/components/editor/gtkhtml-image-chooser-dialog.c
@@ -149,6 +149,9 @@ image_chooser_dialog_constructed (GObject *object)
GtkFileChooser *file_chooser;
GtkFileFilter *file_filter;
+ /* Chain up to parent's method. */
+ G_OBJECT_CLASS (gtkhtml_image_chooser_dialog_parent_class)->constructed (object);
+
file_chooser = GTK_FILE_CHOOSER (object);
gtk_file_chooser_set_local_only (file_chooser, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]