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:
committed by
Matthias Clasen
parent
ae66ef4fdb
commit
7d9dfbd20e
@ -1,5 +1,8 @@
|
|||||||
2004-12-13 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Revert a change
|
||||||
which prevented torn-off menus from being shown normally.
|
which prevented torn-off menus from being shown normally.
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
2004-12-13 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Revert a change
|
||||||
which prevented torn-off menus from being shown normally.
|
which prevented torn-off menus from being shown normally.
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
2004-12-13 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Revert a change
|
||||||
which prevented torn-off menus from being shown normally.
|
which prevented torn-off menus from being shown normally.
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
2004-12-13 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Revert a change
|
||||||
which prevented torn-off menus from being shown normally.
|
which prevented torn-off menus from being shown normally.
|
||||||
|
|
||||||
|
|||||||
@ -257,8 +257,11 @@ gtk_tearoff_menu_item_activate (GtkMenuItem *menu_item)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
tearoff_state_changed (GtkMenu *menu,
|
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);
|
tearoff_menu_item->torn_off = gtk_menu_get_tearoff_state (menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user