summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-12-13 19:53:19 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-12-13 19:53:19 +0000
commit7d9dfbd20e912f1596b041e71b2208a1ddfc35fa (patch)
treed68b836d2c3423b23fab9c757149bcd5589120f3 /gtk
parentae66ef4fdb8a5a84cbd23ff0d5f8d404674049cf (diff)
downloadgtk+-7d9dfbd20e912f1596b041e71b2208a1ddfc35fa.tar.gz
Fix the signature to avoid overwriting a pspec.
2004-12-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtktearoffmenuitem.c (tearoff_state_changed): Fix the signature to avoid overwriting a pspec.
Diffstat (limited to 'gtk')
-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);
}