summaryrefslogtreecommitdiff
path: root/gtk/gtktearoffmenuitem.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtktearoffmenuitem.c')
-rw-r--r--gtk/gtktearoffmenuitem.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtktearoffmenuitem.c b/gtk/gtktearoffmenuitem.c
index 375005de74..9df9ea9d90 100644
--- a/gtk/gtktearoffmenuitem.c
+++ b/gtk/gtktearoffmenuitem.c
@@ -257,8 +257,11 @@ gtk_tearoff_menu_item_activate (GtkMenuItem *menu_item)
static void
tearoff_state_changed (GtkMenu *menu,
- GtkTearoffMenuItem *tearoff_menu_item)
+ GParamSpec *pspec,
+ gpointer data)
{
+ GtkTearoffMenuItem *tearoff_menu_item = GTK_TEAROFF_MENU_ITEM (data);
+
tearoff_menu_item->torn_off = gtk_menu_get_tearoff_state (menu);
}