[gnome-panel] status-notifier: allow mnemonics also on check and radio items



commit 4783139b0d967366cfd5a2bcea2c57f641fe6198
Author: Colomban Wendling <cwendling hypra fr>
Date:   Thu Dec 15 15:19:35 2016 +0100

    status-notifier: allow mnemonics also on check and radio items
    
    Other menu items already support mnemonics unconditionally through
    SnImageMenuItem.
    
    A better implementation would be setting this property unconditionally
    and having SnImageMenuItem honor it, but GtkMenuItem makes it awfully
    complex for a subclass with more than one child to do that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776138

 .../external/status-notifier/sn-dbus-menu-item.c   |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/modules/external/status-notifier/sn-dbus-menu-item.c 
b/modules/external/status-notifier/sn-dbus-menu-item.c
index 455bb35..e3ccbae 100644
--- a/modules/external/status-notifier/sn-dbus-menu-item.c
+++ b/modules/external/status-notifier/sn-dbus-menu-item.c
@@ -178,10 +178,12 @@ sn_dbus_menu_item_new (GVariant *props)
       if (g_strcmp0 (item->toggle_type, "checkmark") == 0)
         {
           item->item = gtk_check_menu_item_new ();
+          gtk_menu_item_set_use_underline (GTK_MENU_ITEM (item->item), TRUE);
         }
       else if (g_strcmp0 (item->toggle_type, "radio") == 0)
         {
           item->item = gtk_radio_menu_item_new (NULL);
+          gtk_menu_item_set_use_underline (GTK_MENU_ITEM (item->item), TRUE);
         }
       else
         {


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