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:
@ -914,6 +914,9 @@ gtk_socket_notify (GObject *object,
|
|||||||
{
|
{
|
||||||
if (strcmp (pspec->name, "is-focus") == 0)
|
if (strcmp (pspec->name, "is-focus") == 0)
|
||||||
socket_update_focus_in (GTK_SOCKET (object));
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -400,6 +400,9 @@ gtk_tool_item_property_notify (GObject *object,
|
|||||||
if (tool_item->priv->menu_item && strcmp (pspec->name, "sensitive") == 0)
|
if (tool_item->priv->menu_item && strcmp (pspec->name, "sensitive") == 0)
|
||||||
gtk_widget_set_sensitive (tool_item->priv->menu_item,
|
gtk_widget_set_sensitive (tool_item->priv->menu_item,
|
||||||
gtk_widget_get_sensitive (GTK_WIDGET (tool_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
|
static void
|
||||||
|
Reference in New Issue
Block a user