summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckmenuitem.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2009-02-07 03:17:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2009-02-07 03:17:43 +0000
commit70b08f1e644612a81ff2f875502be92b596da8c0 (patch)
treeac9f4fd5a86e9b66b7f4248d79f248090a7ae337 /gtk/gtkcheckmenuitem.c
parent302cc82c71a1f5d17f9149cff3b90cf6113ac03c (diff)
downloadgtk+-70b08f1e644612a81ff2f875502be92b596da8c0.tar.gz
Make the new GtkAction code work with PolicyKit-gnome's use of actions.
* gtk/gtkaction.c (gtk_action_[un]block_activate_from): Block the action. * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activatable_reset): * gtk/gtktogglebutton. (gtk_toggle_button_activatable_reset): * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_activatable_reset): Work with non-toggle actions without complaining. * gtk/gtktoolbutton.c (gtk_tool_button_activatable_update): Updating the icon-name should not remove the label. * gtk/gtkimagemenuitem.c (activatable_update_icon_name): Also update the image when the icon name is set to NULL. svn path=/trunk/; revision=22290
Diffstat (limited to 'gtk/gtkcheckmenuitem.c')
-rw-r--r--gtk/gtkcheckmenuitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index e65370b0f1..1bfc26b769 100644
--- a/gtk/gtkcheckmenuitem.c
+++ b/gtk/gtkcheckmenuitem.c
@@ -188,7 +188,7 @@ gtk_check_menu_item_activatable_reset (GtkActivatable *activatable,
parent_activatable_iface->reset (activatable, action);
- if (!action)
+ if (!GTK_IS_TOGGLE_ACTION (action))
return;
gtk_action_block_activate (action);