[alacarte] Partially fix drag-and-drop
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [alacarte] Partially fix drag-and-drop
- Date: Tue, 23 Aug 2011 19:40:47 +0000 (UTC)
commit 2bf8ed02d9cd905b55cef3a198f2df3605f63922
Author: Olav Vitters <olav vitters nl>
Date: Tue Aug 23 21:40:38 2011 +0200
Partially fix drag-and-drop
Alacarte/MainWindow.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
index e6685e1..08d77da 100644
--- a/Alacarte/MainWindow.py
+++ b/Alacarte/MainWindow.py
@@ -425,9 +425,9 @@ class MainWindow:
drop_info = treeview.get_dest_row_at_pos(x, y)
if drop_info:
path, position = drop_info
- types_before = (Gtk.TREE_VIEW_DROP_INTO_OR_BEFORE, Gtk.TREE_VIEW_DROP_INTO_OR_AFTER)
- types_into = (Gtk.TREE_VIEW_DROP_INTO_OR_BEFORE, Gtk.TREE_VIEW_DROP_INTO_OR_AFTER)
- types_after = (Gtk.TREE_VIEW_DROP_AFTER, Gtk.TREE_VIEW_DROP_INTO_OR_AFTER)
+ types_before = (Gtk.TreeViewDropPosition.INTO_OR_BEFORE, Gtk.TreeViewDropPosition.INTO_OR_AFTER)
+ types_into = (Gtk.TreeViewDropPosition.INTO_OR_BEFORE, Gtk.TreeViewDropPosition.INTO_OR_AFTER)
+ types_after = (Gtk.TreeViewDropPosition.AFTER, Gtk.TreeViewDropPosition.INTO_OR_AFTER)
if position not in types:
context.finish(False, False, etime)
return False
@@ -523,7 +523,7 @@ class MainWindow:
def on_item_tree_drag_data_received(self, treeview, context, x, y, selection, info, etime):
items = treeview.get_model()
- types = (Gtk.TREE_VIEW_DROP_BEFORE, Gtk.TREE_VIEW_DROP_INTO_OR_BEFORE)
+ types = (Gtk.TreeViewDropPosition.BEFORE, Gtk.TreeViewDropPosition.INTO_OR_BEFORE)
if selection.target == 'ALACARTE_ITEM_ROW':
drop_info = treeview.get_dest_row_at_pos(x, y)
before = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]