Refactor: Setup Drag Source and Drop Targets in UI files

This commit is contained in:
June 2023-01-22 20:06:02 +01:00
commit 596c8d3cdc
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11
4 changed files with 129 additions and 118 deletions

View file

@ -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>

View file

@ -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>