[gtk+/composite-templates] tests: Add test for mnemonics in GtkMenuButton



commit f4ff00915047015cbce54d59633f419a3680451f
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 10 17:38:35 2012 +0100

    tests: Add test for mnemonics in GtkMenuButton
    
    To check https://bugzilla.gnome.org/show_bug.cgi?id=680962

 tests/testmenubutton.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/testmenubutton.c b/tests/testmenubutton.c
index b7d5b52..e4775ba 100644
--- a/tests/testmenubutton.c
+++ b/tests/testmenubutton.c
@@ -37,8 +37,8 @@ int main (int argc, char **argv)
 		GtkWidget *item;
 		char *label;
 
-		label = g_strdup_printf ("Item %d", i);
-		item = gtk_menu_item_new_with_label (label);
+		label = g_strdup_printf ("Item _%d", i);
+		item = gtk_menu_item_new_with_mnemonic (label);
 		g_free (label);
 		gtk_menu_attach (GTK_MENU (menu_widget),
 				 item,
@@ -59,7 +59,7 @@ int main (int argc, char **argv)
 	menu = g_menu_new ();
 	for (i = 5; i > 0; i--) {
 		char *label;
-		label = g_strdup_printf ("Item %d", i);
+		label = g_strdup_printf ("Item _%d", i);
 		g_menu_insert (menu, i - 1, label, NULL);
 		g_free (label);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]