mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-10 16:26:35 +01:00
Refactor: Setup Drag Source and Drop Targets in UI files
This commit is contained in:
parent
5362629f94
commit
596c8d3cdc
4 changed files with 129 additions and 118 deletions
|
|
@ -24,5 +24,20 @@
|
|||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDragSource">
|
||||
<property name="actions">move</property>
|
||||
<signal name="prepare" handler="onDragPrepare"/>
|
||||
<signal name="drag-begin" handler="onDragBegin"/>
|
||||
<signal name="drag-end" handler="onDragEnd"/>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDropTarget">
|
||||
<property name="actions">move</property>
|
||||
<property name="formats">PrefsBoxOrderItemRow</property>
|
||||
<signal name="drop" handler="onDrop"/>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
|
|||
|
|
@ -19,5 +19,12 @@
|
|||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDropTarget">
|
||||
<property name="actions">move</property>
|
||||
<property name="formats">PrefsBoxOrderItemRow</property>
|
||||
<signal name="drop" handler="onDrop"/>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue