summaryrefslogtreecommitdiff
path: root/gtk/gtkaction.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-12-19 00:39:10 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-12-19 00:39:10 +0000
commitbc5d7efe972009efdc4cf2b3691d5ce36c0b5a49 (patch)
treea3de2b9b6705631e9412349bf48215f59d2e5e8d /gtk/gtkaction.c
parent4d9e9afdc10a232220c3db67db577805974279f4 (diff)
downloadgdk-pixbuf-bc5d7efe972009efdc4cf2b3691d5ce36c0b5a49.tar.gz
Fix the behaviour of insensitive actions, which was broken when
Fri Dec 19 01:35:34 2003 Matthias Clasen <maclas@gmx.de> Fix the behaviour of insensitive actions, which was broken when gtk_action_activate() was changed to pay attention to sensitivity (#129557, Christian Persch) * gtk/gtkaction.h: * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary function to emit an activate signal without regard to sensitivity. * gtk/gtkradioaction.c: * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate() instead of gtk_action_activate().
Diffstat (limited to 'gtk/gtkaction.c')
-rw-r--r--gtk/gtkaction.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gtkaction.c b/gtk/gtkaction.c
index 7193312bf..19730370f 100644
--- a/gtk/gtkaction.c
+++ b/gtk/gtkaction.c
@@ -871,6 +871,12 @@ disconnect_proxy (GtkAction *action,
g_signal_emit (action, action_signals[DISCONNECT_PROXY], 0, proxy);
}
+void
+_gtk_action_emit_activate (GtkAction *action)
+{
+ g_signal_emit (action, action_signals[ACTIVATE], 0);
+}
+
/**
* gtk_action_activate:
* @action: the action object
@@ -889,7 +895,7 @@ gtk_action_activate (GtkAction *action)
g_return_if_fail (GTK_IS_ACTION (action));
if (action->private_data->sensitive)
- g_signal_emit (action, action_signals[ACTIVATE], 0);
+ _gtk_action_emit_activate (action);
}
/**