From aae52d4580e2433330ce534126c318108b313af3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 1 Dec 2011 15:25:46 -0500 Subject: [PATCH] GtkApplicationWindow: Make mnemonics work for stateful actions --- gtk/gtkapplicationwindow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index 7d047705e1..807caa3e5c 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -623,7 +623,7 @@ create_menuitem_from_model (GMenuModel *model, type = NULL; if (type == NULL) - w = gtk_menu_item_new_with_mnemonic (label); + w = gtk_menu_item_new_with_label (label); else if (g_variant_type_equal (type, G_VARIANT_TYPE_BOOLEAN)) w = gtk_check_menu_item_new_with_label (label); else if (g_variant_type_equal (type, G_VARIANT_TYPE_STRING)) @@ -634,6 +634,8 @@ create_menuitem_from_model (GMenuModel *model, else g_assert_not_reached (); + gtk_menu_item_set_use_underline (GTK_MENU_ITEM (w), TRUE); + if (action != NULL) { a = g_new0 (ActionData, 1);