mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-10 16:26:35 +01:00
Refactor: Build Menu in UI file
This commit is contained in:
parent
e07411f9fd
commit
503fdcb90d
2 changed files with 23 additions and 15 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue