mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
deactivate the menu before setiing it to something else. Bug #153887.
2004-10-01 Paolo Borelli <pborelli@katamail.com> * gtk/gtkmenutoolbutton.c: deactivate the menu before setiing it to something else. Bug #153887.
This commit is contained in:
parent
a1fc954532
commit
3fed513283
@ -1,3 +1,8 @@
|
||||
2004-10-01 Paolo Borelli <pborelli@katamail.com>
|
||||
|
||||
* gtk/gtkmenutoolbutton.c: deactivate the menu before setiing it
|
||||
to something else. Bug #153887.
|
||||
|
||||
2004-10-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Fix bug #150790:
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-10-01 Paolo Borelli <pborelli@katamail.com>
|
||||
|
||||
* gtk/gtkmenutoolbutton.c: deactivate the menu before setiing it
|
||||
to something else. Bug #153887.
|
||||
|
||||
2004-10-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Fix bug #150790:
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-10-01 Paolo Borelli <pborelli@katamail.com>
|
||||
|
||||
* gtk/gtkmenutoolbutton.c: deactivate the menu before setiing it
|
||||
to something else. Bug #153887.
|
||||
|
||||
2004-10-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Fix bug #150790:
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-10-01 Paolo Borelli <pborelli@katamail.com>
|
||||
|
||||
* gtk/gtkmenutoolbutton.c: deactivate the menu before setiing it
|
||||
to something else. Bug #153887.
|
||||
|
||||
2004-10-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Fix bug #150790:
|
||||
|
@ -537,6 +537,9 @@ gtk_menu_tool_button_set_menu (GtkMenuToolButton *button,
|
||||
|
||||
if (priv->menu != GTK_MENU (menu))
|
||||
{
|
||||
if (priv->menu && GTK_WIDGET_VISIBLE (priv->menu))
|
||||
gtk_menu_shell_deactivate (GTK_MENU_SHELL (priv->menu));
|
||||
|
||||
if (priv->menu)
|
||||
g_object_unref (priv->menu);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user