mirror of
https://gitlab.gnome.org/julianschacher/top-bar-organizer.git
synced 2025-10-28 07:29:14 +00:00
Use the title of the PrefsBoxOrderItemRow (AdwActionRow) for the item name instead of a label in the prefix. Aside from generally being more correct, item names now wrap correctly, avoiding the settings window breaking (being cut off by default to the right with even the close button not showing, until resizing) with long item names.
57 lines
2.0 KiB
XML
57 lines
2.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="PrefsBoxOrderItemRow" parent="AdwActionRow">
|
|
<child type="prefix">
|
|
<object class="GtkImage">
|
|
<property name="icon-name">list-drag-handle-symbolic</property>
|
|
<style>
|
|
<class name="drag-handle"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child type="suffix">
|
|
<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>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkDragSource">
|
|
<property name="actions">move</property>
|
|
<signal name="prepare" handler="onDragPrepare"/>
|
|
<signal name="drag-begin" handler="onDragBegin"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkDropTarget">
|
|
<property name="actions">move</property>
|
|
<property name="formats">PrefsBoxOrderItemRow</property>
|
|
<signal name="drop" handler="onDrop"/>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<menu id="optionsMenuModel">
|
|
<section>
|
|
<item>
|
|
<attribute name="label">Move Up</attribute>
|
|
<attribute name="action">row.move-up</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label">Move Down</attribute>
|
|
<attribute name="action">row.move-down</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label">Forget</attribute>
|
|
<attribute name="action">row.forget</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
</interface>
|