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:
Paolo Borelli 2004-10-02 10:10:11 +00:00 committed by Paolo Borelli
parent a1fc954532
commit 3fed513283
5 changed files with 23 additions and 0 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

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