RIP appmenu

F5 -> <primary>r for refresh
This commit is contained in:
Zander Brown 2018-05-27 14:32:15 +01:00
parent f1892eeba2
commit b5f7399b2c
3 changed files with 5 additions and 10 deletions

View File

@ -14,7 +14,7 @@
<child> <child>
<object class="GtkShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="visible">True</property> <property name="visible">True</property>
<property name="accelerator">F5</property> <property name="accelerator">&lt;primary&gt;r</property>
<property name="title" translatable="yes" context="shortcut window">Check for new episodes</property> <property name="title" translatable="yes" context="shortcut window">Check for new episodes</property>
</object> </object>
</child> </child>
@ -30,4 +30,4 @@
</object> </object>
</child> </child>
</object> </object>
</interface> </interface>

View File

@ -1,12 +1,12 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<interface> <interface>
<!-- interface-requires gtk+ 3.0 --> <!-- interface-requires gtk+ 3.0 -->
<menu id="app-menu"> <menu id="menu">
<section> <section>
<item> <item>
<attribute name="label" translatable="yes">_Check for new episodes</attribute> <attribute name="label" translatable="yes">_Check for new episodes</attribute>
<attribute name="action">app.refresh</attribute> <attribute name="action">app.refresh</attribute>
<attribute name="accel">F5</attribute> <attribute name="accel">&lt;primary&gt;r</attribute>
</item> </item>
<item> <item>
<attribute name="label" translatable="yes">_Import Shows</attribute> <attribute name="label" translatable="yes">_Import Shows</attribute>
@ -36,11 +36,6 @@
<attribute name="label" translatable="yes">_About</attribute> <attribute name="label" translatable="yes">_About</attribute>
<attribute name="action">app.about</attribute> <attribute name="action">app.about</attribute>
</item> </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> </section>
</menu> </menu>
</interface> </interface>

View File

@ -44,7 +44,7 @@ impl Default for Header {
let update_spinner = builder.get_object("update_spinner").unwrap(); let update_spinner = builder.get_object("update_spinner").unwrap();
let menu_popover = builder.get_object("menu_popover").unwrap(); let menu_popover = builder.get_object("menu_popover").unwrap();
let menus = gtk::Builder::new_from_resource("/org/gnome/Hammond/gtk/menus.ui"); let menus = gtk::Builder::new_from_resource("/org/gnome/Hammond/gtk/menus.ui");
let app_menu = menus.get_object("app-menu").unwrap(); let app_menu = menus.get_object("menu").unwrap();
Header { Header {
container: header, container: header,