77 lines
2.5 KiB
XML
77 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="GcalCalendarButton" parent="AdwBin">
|
|
<child>
|
|
<object class="GtkMenuButton">
|
|
<property name="tooltip-text" translatable="yes">Manage Calendars</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="label" translatable="yes">_Calendars</property>
|
|
<property name="popover">popover</property>
|
|
<property name="can-shrink">True</property>
|
|
<style>
|
|
<class name="image-button" />
|
|
</style>
|
|
<child>
|
|
<object class="GtkShortcutController">
|
|
<property name="scope">managed</property>
|
|
<child>
|
|
<object class="GtkShortcut">
|
|
<property name="trigger">F8</property>
|
|
<property name="action">activate</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
|
|
<menu id='menu'>
|
|
<section>
|
|
<item>
|
|
<attribute name="custom">list</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Synchronize Calendars</attribute>
|
|
<attribute name="action">app.sync</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Manage Calendars…</attribute>
|
|
<attribute name="action">win.show-calendars</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
|
|
<object class="GtkPopoverMenu" id="popover">
|
|
<property name="position">bottom</property>
|
|
<property name="menu-model">menu</property>
|
|
|
|
<child type="list">
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="hscrollbar_policy">never</property>
|
|
<property name="max_content_height">450</property>
|
|
<property name="propagate-natural-height">True</property>
|
|
<child>
|
|
<object class="GtkListBox" id="calendar_listbox">
|
|
<property name="hexpand">True</property>
|
|
<property name="selection_mode">none</property>
|
|
<signal name="row-activated" handler="on_listbox_row_activated_cb" object="GcalCalendarButton" swapped="no"/>
|
|
<style>
|
|
<class name="calendar-list"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</object>
|
|
|
|
</interface>
|