summaryrefslogtreecommitdiff
path: root/gtk/gtkoptionmenu.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-12-21 00:59:46 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-12-21 00:59:46 +0000
commitb21fe1745c6b209f1d2fc9e375dfb391e72cbdd1 (patch)
tree27bf79b55140964f362999eb2826d7c2f7a8327b /gtk/gtkoptionmenu.c
parentf3faa16dab385437e1453cf52a54acb80c2bf373 (diff)
downloadgtk+-b21fe1745c6b209f1d2fc9e375dfb391e72cbdd1.tar.gz
New function to emit the "cancel" signal on a menu shell.
Sun Dec 21 01:54:40 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkmenushell.h: * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function to emit the "cancel" signal on a menu shell. * gtk/gtkmenu.c (gtk_menu_key_press): * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the new function instead of directly emitting the signal. (#81803, Owen Taylor)
Diffstat (limited to 'gtk/gtkoptionmenu.c')
-rw-r--r--gtk/gtkoptionmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkoptionmenu.c b/gtk/gtkoptionmenu.c
index 2c8dac1236..02ed6a315a 100644
--- a/gtk/gtkoptionmenu.c
+++ b/gtk/gtkoptionmenu.c
@@ -305,7 +305,7 @@ gtk_option_menu_remove_menu (GtkOptionMenu *option_menu)
if (option_menu->menu)
{
if (GTK_MENU_SHELL (option_menu->menu)->active)
- g_signal_emit_by_name (option_menu->menu, "cancel", 0);
+ gtk_menu_shell_cancel (GTK_MENU_SHELL (option_menu->menu));
gtk_menu_detach (GTK_MENU (option_menu->menu));
}