Refactor: Build Menu in UI file

This commit is contained in:
June 2023-01-22 21:02:58 +01:00
commit 503fdcb90d
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11
2 changed files with 23 additions and 15 deletions

View file

@ -16,9 +16,11 @@
</object>
</child>
<child type="suffix">
<object class="GtkMenuButton" id="menu-button">
<object class="GtkMenuButton">
<property name="valign">center</property>
<property name="icon-name">view-more-symbolic</property>
<property name="tooltip-text">Options</property>
<property name="menu-model">optionsMenuModel</property>
<style>
<class name="flat"/>
</style>
@ -40,4 +42,12 @@
</object>
</child>
</template>
<menu id="optionsMenuModel">
<section>
<item>
<attribute name="label">Forget</attribute>
<attribute name="action">options.forget</attribute>
</item>
</section>
</menu>
</interface>