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
This commit is contained in:
Claudio Saavedra
2012-04-04 11:10:44 +03:00
parent 8062e471d1
commit 560952d3c0
2 changed files with 6 additions and 0 deletions

View File

@ -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);
}
/**

View File

@ -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