[rhythmbox] shell: remove 'quit' from the menu, add an accelerator for it



commit edd281e836b19db09eb99a7730778d1315108ef5
Author: Jonathan Matthew <jonathan d14n org>
Date:   Tue Aug 20 11:56:38 2019 +1000

    shell: remove 'quit' from the menu, add an accelerator for it
    
    Other apps generally don't have it there, and there are lots of other
    ways to quit.

 data/ui/app-menu.ui | 5 -----
 shell/rb-shell.c    | 2 ++
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/data/ui/app-menu.ui b/data/ui/app-menu.ui
index 359cd9b43..405952606 100644
--- a/data/ui/app-menu.ui
+++ b/data/ui/app-menu.ui
@@ -62,11 +62,6 @@
        <attribute name="label" translatable="yes">_About</attribute>
        <attribute name="action">app.about</attribute>
       </item>
-      <item>
-       <attribute name="label" translatable="yes">_Quit</attribute>
-       <attribute name="action">app.quit</attribute>
-       <attribute name="accel">&lt;Primary&gt;q</attribute>
-      </item>
     </section>
   </menu>
 
diff --git a/shell/rb-shell.c b/shell/rb-shell.c
index ccd0fbfaa..99fc9c9b8 100644
--- a/shell/rb-shell.c
+++ b/shell/rb-shell.c
@@ -782,6 +782,8 @@ construct_load_ui (RBShell *shell)
        gtk_widget_show_all (shell->priv->menu_button);
        gtk_toolbar_insert (GTK_TOOLBAR (toolbar), GTK_TOOL_ITEM (shell->priv->menu_button), -1);
 
+       rb_application_add_accelerator (RB_APPLICATION (app), "<Primary>q", "app.quit", NULL);
+
        rb_profile_end ("loading ui");
 }
 


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