Retire app-menu
For https://gitlab.gnome.org/GNOME/Initiatives/issues/4, the application menu is being retired, with it's contents being moved into the in-window primary window. When removing a menu, the shortcuts for it's actions (if defined in the menu) are also removed. The "Quit" shortcut is now defined in src/gcal-window.c. Related to https://gitlab.gnome.org/GNOME/gnome-calendar/issues/319
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
3f42719ebe
commit
5cffec4456
@@ -1,28 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<interface>
|
||||
<menu id="app-menu">
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_Calendars</attribute>
|
||||
<attribute name="action">win.show-calendars</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
|
||||
<attribute name="action">win.show-help-overlay</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<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"><Primary>q</attribute>
|
||||
</item>
|
||||
</section>
|
||||
</menu>
|
||||
<menu id="add-source-menu">
|
||||
<section>
|
||||
<item>
|
||||
|
||||
@@ -395,6 +395,45 @@
|
||||
<property name="text" translatable="yes">_Weather</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkSeparator">
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<!-- Calendars -->
|
||||
<child>
|
||||
<object class="GtkModelButton">
|
||||
<property name="visible">True</property>
|
||||
<property name="action-name">win.show-calendars</property>
|
||||
<property name="text" translatable="yes">_Calendars</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkSeparator">
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<!-- Shortcuts -->
|
||||
<child>
|
||||
<object class="GtkModelButton">
|
||||
<property name="visible">True</property>
|
||||
<property name="action-name">win.show-help-overlay</property>
|
||||
<property name="text" translatable="yes">_Keyboard Shortcuts</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<!-- About -->
|
||||
<child>
|
||||
<object class="GtkModelButton">
|
||||
<property name="visible">True</property>
|
||||
<property name="action-name">app.about</property>
|
||||
<property name="text" translatable="yes">_About Calendar</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
|
||||
@@ -1570,6 +1570,7 @@ gcal_window_init (GcalWindow *self)
|
||||
gcal_window_add_accelerator (app, "win.change-view(2)", "<Ctrl>2");
|
||||
gcal_window_add_accelerator (app, "win.change-view(3)", "<Ctrl>3");
|
||||
gcal_window_add_accelerator (app, "win.toggle-search-bar", "<Ctrl>f");
|
||||
gcal_window_add_accelerator (app, "app.quit", "<Ctrl>q");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user