calendars-page: Add shortcuts for Add Calendar
The "Add Calendar" button lacked a mnemonic, which made it difficult for keyboard users to activate it. It also adds a Ctrl+N shortcut.
This commit is contained in:
@@ -56,12 +56,25 @@
|
|||||||
<property name="margin-bottom">12</property>
|
<property name="margin-bottom">12</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="add_calendar_row">
|
<object class="GtkButton" id="add_calendar_row">
|
||||||
<property name="label" translatable="yes">Add Calendar…</property>
|
<property name="label" translatable="yes">_Add Calendar…</property>
|
||||||
|
<property name="use-underline">true</property>
|
||||||
<signal name="clicked" handler="on_new_calendar_button_clicked_cb" object="GcalCalendarsPage" swapped="no" />
|
<signal name="clicked" handler="on_new_calendar_button_clicked_cb" object="GcalCalendarsPage" swapped="no" />
|
||||||
<style>
|
<style>
|
||||||
<class name="pill"/>
|
<class name="pill"/>
|
||||||
<class name="suggested-action"/>
|
<class name="suggested-action"/>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkShortcutController">
|
||||||
|
<property name="scope">managed</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkShortcut">
|
||||||
|
<property name="trigger"><Ctrl>n</property>
|
||||||
|
<property name="action">activate</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
Reference in New Issue
Block a user