From f03bd64e19284b73182a32df5435a6d85c027935 Mon Sep 17 00:00:00 2001 From: gm10 <13855078+gm10@users.noreply.github.com> Date: Sun, 11 Aug 2019 22:53:59 +0200 Subject: Change DragAction to MOVE --- Mozo/MainWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py index 93a9e4c..19635f5 100644 --- a/Mozo/MainWindow.py +++ b/Mozo/MainWindow.py @@ -184,7 +184,7 @@ class MainWindow: column.add_attribute(cell, 'markup', 1) column.set_sizing(Gtk.TreeViewColumnSizing.FIXED) menus.append_column(column) - menus.enable_model_drag_source(Gdk.ModifierType.BUTTON1_MASK, self.dnd_menus, Gdk.DragAction.COPY) + menus.enable_model_drag_source(Gdk.ModifierType.BUTTON1_MASK, self.dnd_menus, Gdk.DragAction.MOVE) menus.enable_model_drag_dest(self.dnd_both, Gdk.DragAction.PRIVATE) menus.get_selection().set_mode(Gtk.SelectionMode.BROWSE) @@ -210,7 +210,7 @@ class MainWindow: items.append_column(column) self.item_store = Gtk.ListStore(bool, GdkPixbuf.Pixbuf, str, object) items.set_model(self.item_store) - items.enable_model_drag_source(Gdk.ModifierType.BUTTON1_MASK, self.dnd_items, Gdk.DragAction.COPY) + items.enable_model_drag_source(Gdk.ModifierType.BUTTON1_MASK, self.dnd_items, Gdk.DragAction.MOVE) items.enable_model_drag_dest(self.dnd_items, Gdk.DragAction.PRIVATE) def _cell_data_toggle_func(self, tree_column, renderer, model, treeiter, data=None): -- cgit v1.2.1