[gtk+] Chain up relevant GObjectClass:notify vfuncs
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Chain up relevant GObjectClass:notify vfuncs
- Date: Tue, 7 Aug 2012 15:24:58 +0000 (UTC)
commit 560952d3c0b942971c29ae7690c95e789ad9499f
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Apr 4 11:10:44 2012 +0300
Chain up relevant GObjectClass:notify vfuncs
These widgets have ancestors other than GObject which could eventually
implement the notify vfunc for their properties. For correctness, they
should chain up the notify vfunc.
https://bugzilla.gnome.org/show_bug.cgi?id=673478
gtk/gtksocket.c | 3 +++
gtk/gtktoolitem.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c
index 5e2a770..c787636 100644
--- a/gtk/gtksocket.c
+++ b/gtk/gtksocket.c
@@ -914,6 +914,9 @@ gtk_socket_notify (GObject *object,
{
if (strcmp (pspec->name, "is-focus") == 0)
socket_update_focus_in (GTK_SOCKET (object));
+
+ if (G_OBJECT_CLASS (gtk_socket_parent_class)->notify)
+ G_OBJECT_CLASS (gtk_socket_parent_class)->notify (object, pspec);
}
/**
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index adae769..26ad140 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -400,6 +400,9 @@ gtk_tool_item_property_notify (GObject *object,
if (tool_item->priv->menu_item && strcmp (pspec->name, "sensitive") == 0)
gtk_widget_set_sensitive (tool_item->priv->menu_item,
gtk_widget_get_sensitive (GTK_WIDGET (tool_item)));
+
+ if (G_OBJECT_CLASS (gtk_tool_item_parent_class)->notify)
+ G_OBJECT_CLASS (gtk_tool_item_parent_class)->notify (object, pspec);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]