summaryrefslogtreecommitdiff
path: root/tests/testsocket_common.c
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2010-03-31 17:29:53 +0200
committerJavier Jardón <jjardon@gnome.org>2010-05-03 01:51:22 +0200
commit298f1ea9f6b0fc8dab22ab046efdc8d9f30ae696 (patch)
tree3a56564a341482caf8033f856b80eefcd629fb01 /tests/testsocket_common.c
parent187e49992d25c1ba11652b777aad03dfa7f415f8 (diff)
downloadgtk+-298f1ea9f6b0fc8dab22ab046efdc8d9f30ae696.tar.gz
Use "activate" rather than "clicked" for menu items
Diffstat (limited to 'tests/testsocket_common.c')
-rw-r--r--tests/testsocket_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testsocket_common.c b/tests/testsocket_common.c
index d2e1d2f804..f6937b8417 100644
--- a/tests/testsocket_common.c
+++ b/tests/testsocket_common.c
@@ -172,12 +172,12 @@ create_menubar (GtkWindow *window)
menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_NEW, NULL);
- g_signal_connect (menuitem, "clicked", G_CALLBACK (print_hello), window);
+ g_signal_connect (menuitem, "activate", G_CALLBACK (print_hello), window);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
menuitem = gtk_separator_menu_item_new ();
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_QUIT, NULL);
- g_signal_connect (menuitem, "clicked", G_CALLBACK (gtk_main_quit), window);
+ g_signal_connect (menuitem, "activate", G_CALLBACK (gtk_main_quit), window);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
menuitem = gtk_menu_item_new_with_mnemonic ("O_K");
@@ -190,7 +190,7 @@ create_menubar (GtkWindow *window)
menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_ABOUT, NULL);
- g_signal_connect (menuitem, "clicked", G_CALLBACK (print_hello), window);
+ g_signal_connect (menuitem, "activate", G_CALLBACK (print_hello), window);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
return menubar;