forked from AuroraMiddleware/gtk
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