[meld] meldwindow: Fix drag-and-drop on to main window/tab bar
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] meldwindow: Fix drag-and-drop on to main window/tab bar
- Date: Fri, 6 Apr 2018 21:53:33 +0000 (UTC)
commit 64e7f0a182dc7211d581bf2770d8e473877786c3
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Apr 7 07:47:39 2018 +1000
meldwindow: Fix drag-and-drop on to main window/tab bar
This was broken by a mistaken API call in earlier GFile changes.
meld/meldwindow.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index 44b270b5..2d573a89 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -274,10 +274,11 @@ class MeldWindow(Component):
# Let the rest of the stack know about this event
return False
- def on_widget_drag_data_received(self, wid, context, x, y, selection_data,
- info, time):
- if len(selection_data.get_files()) != 0:
- self.open_paths(selection_data.get_files())
+ def on_widget_drag_data_received(
+ self, wid, context, x, y, selection_data, info, time):
+ uris = selection_data.get_uris()
+ if uris:
+ self.open_paths([Gio.File.new_for_uri(uri) for uri in uris])
return True
def on_idle(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]