diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2003-02-07 07:22:50 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2003-02-07 07:22:50 +0800 |
commit | 75b60575be726c73ace0700c52e526f869c1448f (patch) | |
tree | 14d710210182e8cc049a8962dcca97189343d71c /widgets/misc/e-gui-utils.c | |
parent | 11136022cc92e4dd36d2fb494e2e16d7aae13dd7 (diff) | |
download | gsoc2013-evolution-75b60575be726c73ace0700c52e526f869c1448f.tar.gz gsoc2013-evolution-75b60575be726c73ace0700c52e526f869c1448f.tar.zst gsoc2013-evolution-75b60575be726c73ace0700c52e526f869c1448f.zip |
(e_auto_kill_popup_menu_on_selection_done): Rename from
e_auto_kill_popup_menu_on_hide(). Connect to "deactivate" instead
of destroy.
(e_popup_menu): Use e_auto_kill_popup_menu_on_selection_done()
instead of e_auto_kill_popup_menu_on_hide().
svn path=/trunk/; revision=19833
Diffstat (limited to 'widgets/misc/e-gui-utils.c')
-rw-r--r-- | widgets/misc/e-gui-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/misc/e-gui-utils.c b/widgets/misc/e-gui-utils.c index 9b4e3f3db2..6747ae2cff 100644 --- a/widgets/misc/e-gui-utils.c +++ b/widgets/misc/e-gui-utils.c @@ -58,11 +58,11 @@ e_notice (GtkWindow *parent, GtkMessageType type, const char *format, ...) } void -e_auto_kill_popup_menu_on_hide (GtkMenu *menu) +e_auto_kill_popup_menu_on_selection_done (GtkMenu *menu) { g_return_if_fail (GTK_IS_MENU (menu)); - g_signal_connect (menu, "hide", G_CALLBACK (gtk_widget_destroy), menu); + g_signal_connect (menu, "selection_done", G_CALLBACK (gtk_widget_destroy), menu); } void @@ -70,7 +70,7 @@ e_popup_menu (GtkMenu *menu, GdkEvent *event) { g_return_if_fail (GTK_IS_MENU (menu)); - e_auto_kill_popup_menu_on_hide (menu); + e_auto_kill_popup_menu_on_selection_done (menu); if (event->type == GDK_KEY_PRESS) gtk_menu_popup (menu, NULL, NULL, 0, NULL, 0, event->key.time); |