Don't claim to have handled the accelerator if the action is insensitive.

2004-11-28  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaction.c (closure_accel_activate): Don't claim to have
	handled the accelerator if the action is insensitive.  (#151541,
	Jody Goldberg)
This commit is contained in:
Matthias Clasen 2004-11-28 05:13:00 +00:00 committed by Matthias Clasen
parent 5e3426947f
commit f22bb95581
5 changed files with 22 additions and 4 deletions

View File

@ -1,5 +1,9 @@
2004-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaction.c (closure_accel_activate): Don't claim to have
handled the accelerator if the action is insensitive. (#151541,
Jody Goldberg)
* docs/tools/widgets.c: Add a combo box.
2004-11-27 Matthias Clasen <mclasen@redhat.com>

View File

@ -1,5 +1,9 @@
2004-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaction.c (closure_accel_activate): Don't claim to have
handled the accelerator if the action is insensitive. (#151541,
Jody Goldberg)
* docs/tools/widgets.c: Add a combo box.
2004-11-27 Matthias Clasen <mclasen@redhat.com>

View File

@ -1,5 +1,9 @@
2004-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaction.c (closure_accel_activate): Don't claim to have
handled the accelerator if the action is insensitive. (#151541,
Jody Goldberg)
* docs/tools/widgets.c: Add a combo box.
2004-11-27 Matthias Clasen <mclasen@redhat.com>

View File

@ -1,5 +1,9 @@
2004-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaction.c (closure_accel_activate): Don't claim to have
handled the accelerator if the action is insensitive. (#151541,
Jody Goldberg)
* docs/tools/widgets.c: Add a combo box.
2004-11-27 Matthias Clasen <mclasen@redhat.com>

View File

@ -1398,11 +1398,13 @@ closure_accel_activate (GClosure *closure,
gpointer marshal_data)
{
if (gtk_action_is_sensitive (GTK_ACTION (closure->data)))
{
_gtk_action_emit_activate (GTK_ACTION (closure->data));
/* we handled the accelerator */
g_value_set_boolean (return_value, TRUE);
}
}
static void
gtk_action_set_action_group (GtkAction *action,