diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-24 17:31:22 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-24 19:53:08 -0400 |
commit | fc71cbe5a6e22c7dea24a028d87ad0e2a050020b (patch) | |
tree | baf11b422ee1640b6e17ac317e27eb2ea49ad59f /tests/testrecentchoosermenu.c | |
parent | c79a21e1ddda961be43813daa9179505af89adb7 (diff) | |
download | gtk+-fc71cbe5a6e22c7dea24a028d87ad0e2a050020b.tar.gz |
Remove most of the stock API usage from the tests
With the exception of GtkActions and the tests for stock items.
Diffstat (limited to 'tests/testrecentchoosermenu.c')
-rw-r--r-- | tests/testrecentchoosermenu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testrecentchoosermenu.c b/tests/testrecentchoosermenu.c index d5822e8369..df43131474 100644 --- a/tests/testrecentchoosermenu.c +++ b/tests/testrecentchoosermenu.c @@ -95,7 +95,7 @@ create_recent_chooser_menu (gint limit) gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); - menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_CLEAR, NULL); + menuitem = gtk_menu_item_new_with_mnemonic ("Clear"); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); @@ -113,11 +113,11 @@ create_file_menu (GtkAccelGroup *accelgroup) menu = gtk_menu_new (); - menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_NEW, accelgroup); + menuitem = gtk_menu_item_new_with_mnemonic ("_New"); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); - menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_OPEN, accelgroup); + menuitem = gtk_image_menu_item_new_with_mnemonic ("_Open"); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); @@ -131,7 +131,7 @@ create_file_menu (GtkAccelGroup *accelgroup) gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); - menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_QUIT, accelgroup); + menuitem = gtk_menu_item_new_with_mnemonic ("_Quit"); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); |