diff options
author | gm10 <[email protected]> | 2019-08-11 22:53:59 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-09-12 17:51:43 +0200 |
commit | 30e99493fcbe7018c5d90310fab81e9d3cd10c5e (patch) | |
tree | c7aed028f8ae868d68919bbd19b9d166a26e8542 | |
parent | 10efd8440ecacb404aff62745526968301c6be4b (diff) | |
download | mozo-30e99493fcbe7018c5d90310fab81e9d3cd10c5e.tar.bz2 mozo-30e99493fcbe7018c5d90310fab81e9d3cd10c5e.tar.xz |
Change DragAction to MOVE
-rw-r--r-- | Mozo/MainWindow.py | 4 |
1 files 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): |