[gtk+] tests/testsocket: Fix broken test
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests/testsocket: Fix broken test
- Date: Tue, 24 Aug 2010 21:49:48 +0000 (UTC)
commit 72fad93587a4f4c6d60e613e86b4a85e0f1f31d6
Author: Javier Jardón <jjardon gnome org>
Date: Tue Aug 24 21:11:36 2010 +0200
tests/testsocket: Fix broken test
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=627867
tests/testsocket.c | 3 ++-
tests/testsocket_common.c | 2 --
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/tests/testsocket.c b/tests/testsocket.c
index b4ef476..b8310fc 100644
--- a/tests/testsocket.c
+++ b/tests/testsocket.c
@@ -326,12 +326,13 @@ main (int argc, char *argv[])
menubar = gtk_menu_bar_new ();
menuitem = gtk_menu_item_new_with_mnemonic ("_File");
+ gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
+
menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
menuitem = gtk_menu_item_new_with_mnemonic ("_Quit");
g_signal_connect (menuitem, "activate", G_CALLBACK (quit_cb), window);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
- gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
accel_group = gtk_accel_group_new ();
gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
diff --git a/tests/testsocket_common.c b/tests/testsocket_common.c
index 1dc3af0..da28f3a 100644
--- a/tests/testsocket_common.c
+++ b/tests/testsocket_common.c
@@ -182,8 +182,6 @@ create_menubar (GtkWindow *window)
menuitem = gtk_menu_item_new_with_mnemonic ("O_K");
gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
- menu = gtk_menu_new ();
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
menuitem = gtk_menu_item_new_with_mnemonic ("_Help");
gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]