Commit f22bb955 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 5e342694
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>
......
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>
......
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>
......
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>
......
......@@ -1398,10 +1398,12 @@ 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);
{
_gtk_action_emit_activate (GTK_ACTION (closure->data));
/* we handled the accelerator */
g_value_set_boolean (return_value, TRUE);
}
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment