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.
This commit is contained in:
Matthias Clasen
2004-12-13 19:53:19 +00:00
committed by Matthias Clasen
parent ae66ef4fdb
commit 7d9dfbd20e
5 changed files with 16 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktearoffmenuitem.c (tearoff_state_changed): Fix the signature
to avoid overwriting a pspec.
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Revert a change
which prevented torn-off menus from being shown normally.

View File

@ -1,5 +1,8 @@
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktearoffmenuitem.c (tearoff_state_changed): Fix the signature
to avoid overwriting a pspec.
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Revert a change
which prevented torn-off menus from being shown normally.

View File

@ -1,5 +1,8 @@
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktearoffmenuitem.c (tearoff_state_changed): Fix the signature
to avoid overwriting a pspec.
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Revert a change
which prevented torn-off menus from being shown normally.

View File

@ -1,5 +1,8 @@
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktearoffmenuitem.c (tearoff_state_changed): Fix the signature
to avoid overwriting a pspec.
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Revert a change
which prevented torn-off menus from being shown normally.

View File

@ -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);
}