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:
committed by
Matthias Clasen
parent
5e3426947f
commit
f22bb95581
@ -1,5 +1,9 @@
|
|||||||
2004-11-28 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.
|
* docs/tools/widgets.c: Add a combo box.
|
||||||
|
|
||||||
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
2004-11-28 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.
|
* docs/tools/widgets.c: Add a combo box.
|
||||||
|
|
||||||
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
2004-11-28 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.
|
* docs/tools/widgets.c: Add a combo box.
|
||||||
|
|
||||||
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
2004-11-28 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.
|
* docs/tools/widgets.c: Add a combo box.
|
||||||
|
|
||||||
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|||||||
@ -1398,10 +1398,12 @@ closure_accel_activate (GClosure *closure,
|
|||||||
gpointer marshal_data)
|
gpointer marshal_data)
|
||||||
{
|
{
|
||||||
if (gtk_action_is_sensitive (GTK_ACTION (closure->data)))
|
if (gtk_action_is_sensitive (GTK_ACTION (closure->data)))
|
||||||
|
{
|
||||||
_gtk_action_emit_activate (GTK_ACTION (closure->data));
|
_gtk_action_emit_activate (GTK_ACTION (closure->data));
|
||||||
|
|
||||||
/* we handled the accelerator */
|
/* we handled the accelerator */
|
||||||
g_value_set_boolean (return_value, TRUE);
|
g_value_set_boolean (return_value, TRUE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user