diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-12-04 18:58:31 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-12-04 18:58:31 +0800 |
commit | d44c00ab545b4c2a14177247dee70cd5738155c9 (patch) | |
tree | ef3e1e726cfbb97b99e6dac1464ef517bc7d6459 /src/ephy-window.c | |
parent | 159c151dd5c79a425b6b3270f2867bde767cbe2a (diff) | |
download | gsoc2013-epiphany-d44c00ab545b4c2a14177247dee70cd5738155c9.tar gsoc2013-epiphany-d44c00ab545b4c2a14177247dee70cd5738155c9.tar.gz gsoc2013-epiphany-d44c00ab545b4c2a14177247dee70cd5738155c9.tar.bz2 gsoc2013-epiphany-d44c00ab545b4c2a14177247dee70cd5738155c9.tar.lz gsoc2013-epiphany-d44c00ab545b4c2a14177247dee70cd5738155c9.tar.xz gsoc2013-epiphany-d44c00ab545b4c2a14177247dee70cd5738155c9.tar.zst gsoc2013-epiphany-d44c00ab545b4c2a14177247dee70cd5738155c9.zip |
Deactivate the context menu on window close. Fixes bug #156812.
2004-12-04 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-window.c: (ephy_window_destroy):
Deactivate the context menu on window close. Fixes bug #156812.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index d7c65dd45..c0ec381fc 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -486,6 +486,7 @@ static void ephy_window_destroy (GtkObject *gtkobject) { EphyWindow *window = EPHY_WINDOW (gtkobject); + GSList *popups; LOG ("EphyWindow destroy %p", window) @@ -502,6 +503,10 @@ ephy_window_destroy (GtkObject *gtkobject) destroy_exit_fullscreen_popup (window); + popups = gtk_ui_manager_get_toplevels (window->priv->manager, GTK_UI_MANAGER_POPUP); + g_slist_foreach (popups, (GFunc) gtk_menu_shell_deactivate, NULL); + g_slist_free (popups); + GTK_OBJECT_CLASS (parent_class)->destroy (gtkobject); } |