From 195d65f86ddd2b1a7335c7165a3082ae6bc166a6 Mon Sep 17 00:00:00 2001 From: Arnaud Gardelein Date: Wed, 21 Oct 2009 23:12:29 +0200 Subject: [PATCH] ui: use treeview selection for DND data get --- ui.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ui.py b/ui.py index 7887904..bb73d8f 100755 --- a/ui.py +++ b/ui.py @@ -301,10 +301,9 @@ class App(object): time): if target_type == self._TARGET_TYPE_SIGNAL: tv = widget - (path, col) = tv.get_cursor() - row = self._store[path] - print row[0] - selection.set(selection.target, 8, row[0]) + sel = tv.get_selection() + (model, iter) = sel.get_selected() + selection.set(selection.target, 8, model.get_value(iter, 0)) def _drag_data_received_cb(self, widget, drag_context, x, y, selection,\ target_type, time): -- 2.11.4.GIT