summaryrefslogtreecommitdiff
path: root/gtk/gtkactiongroup.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-01-07 06:08:07 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-01-07 06:08:07 +0000
commit36d81d40858e4a2782b0a887554f3070c3efac46 (patch)
treeface7c2b606e325c821bc5a266717783df8a717f /gtk/gtkactiongroup.c
parent91cde9cedf61539949f89689629dbcb4308ea645 (diff)
downloadgtk+-36d81d40858e4a2782b0a887554f3070c3efac46.tar.gz
Fix actiongroup-action interaction that relied on actions connecting to
2006-01-07 Matthias Clasen <mclasen@redhat.com> Fix actiongroup-action interaction that relied on actions connecting to notify on themselves: * gtk/gtkaction.[hc]: Factor out the code updating the visibility/sensitivity of proxies into _gtk_action_sync_visible() and _gtk_action_sync_sensible(). * gtk/gtkactiongroup.c: Call the new functions when the group visibility/sensitivity changes.
Diffstat (limited to 'gtk/gtkactiongroup.c')
-rw-r--r--gtk/gtkactiongroup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkactiongroup.c b/gtk/gtkactiongroup.c
index 5b5ba73215..91b2cb35cf 100644
--- a/gtk/gtkactiongroup.c
+++ b/gtk/gtkactiongroup.c
@@ -420,10 +420,10 @@ static void
cb_set_action_sensitivity (const gchar *name,
GtkAction *action)
{
- /* Minor optimization, the action_groups state only affects actions that are
- * themselves sensitive */
+ /* Minor optimization, the action_groups state only affects actions
+ * that are themselves sensitive */
if (gtk_action_get_sensitive (action))
- g_object_notify (G_OBJECT (action), "sensitive");
+ _gtk_action_sync_sensitive (action);
}
/**
@@ -478,10 +478,10 @@ static void
cb_set_action_visiblity (const gchar *name,
GtkAction *action)
{
- /* Minor optimization, the action_groups state only affects actions that are
- * themselves sensitive */
+ /* Minor optimization, the action_groups state only affects actions
+ * that are themselves visible */
if (gtk_action_get_visible (action))
- g_object_notify (G_OBJECT (action), "visible");
+ _gtk_action_sync_visible (action);
}
/**