diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-01-07 06:08:07 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-01-07 06:08:07 +0000 |
commit | 36d81d40858e4a2782b0a887554f3070c3efac46 (patch) | |
tree | face7c2b606e325c821bc5a266717783df8a717f /gtk/gtkaction.h | |
parent | 91cde9cedf61539949f89689629dbcb4308ea645 (diff) | |
download | gtk+-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/gtkaction.h')
-rw-r--r-- | gtk/gtkaction.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkaction.h b/gtk/gtkaction.h index c7e9f9d383..f7f4c04bfd 100644 --- a/gtk/gtkaction.h +++ b/gtk/gtkaction.h @@ -121,7 +121,11 @@ void gtk_action_set_accel_path (GtkAction *action, const gchar *accel_path); void gtk_action_set_accel_group (GtkAction *action, GtkAccelGroup *accel_group); - +void _gtk_action_sync_sensitive (GtkAction *action); +void _gtk_action_sync_visible (GtkAction *action); +void _gtk_action_sync_menu_visible (GtkAction *action, + GtkWidget *proxy, + gboolean empty); G_END_DECLS |