mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Only activate if the action is sensitive. (#127187, Christian Persch)
Mon Nov 17 23:36:02 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkaction.c (gtk_action_activate): Only activate if the action is sensitive. (#127187, Christian Persch)
This commit is contained in:
parent
03522ef802
commit
eda4f1134f
@ -1,3 +1,8 @@
|
|||||||
|
Mon Nov 17 23:36:02 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkaction.c (gtk_action_activate): Only activate if
|
||||||
|
the action is sensitive. (#127187, Christian Persch)
|
||||||
|
|
||||||
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Nov 17 23:36:02 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkaction.c (gtk_action_activate): Only activate if
|
||||||
|
the action is sensitive. (#127187, Christian Persch)
|
||||||
|
|
||||||
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Nov 17 23:36:02 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkaction.c (gtk_action_activate): Only activate if
|
||||||
|
the action is sensitive. (#127187, Christian Persch)
|
||||||
|
|
||||||
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Nov 17 23:36:02 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkaction.c (gtk_action_activate): Only activate if
|
||||||
|
the action is sensitive. (#127187, Christian Persch)
|
||||||
|
|
||||||
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Nov 17 23:36:02 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkaction.c (gtk_action_activate): Only activate if
|
||||||
|
the action is sensitive. (#127187, Christian Persch)
|
||||||
|
|
||||||
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
* gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
|
||||||
|
@ -875,8 +875,9 @@ disconnect_proxy (GtkAction *action,
|
|||||||
* gtk_action_activate:
|
* gtk_action_activate:
|
||||||
* @action: the action object
|
* @action: the action object
|
||||||
*
|
*
|
||||||
* Emits the "activate" signal on the specified action.
|
* Emits the "activate" signal on the specified action, if it isn't
|
||||||
* This gets called by the proxy widgets when they get activated.
|
* insensitive. This gets called by the proxy widgets when they get
|
||||||
|
* activated.
|
||||||
*
|
*
|
||||||
* It can also be used to manually activate an action.
|
* It can also be used to manually activate an action.
|
||||||
*
|
*
|
||||||
@ -885,6 +886,9 @@ disconnect_proxy (GtkAction *action,
|
|||||||
void
|
void
|
||||||
gtk_action_activate (GtkAction *action)
|
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);
|
g_signal_emit (action, action_signals[ACTIVATE], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user