commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 59/101: grc: gtk3: fix drag and drop from b


From: git
Subject: [Commit-gnuradio] [gnuradio] 59/101: grc: gtk3: fix drag and drop from block tree
Date: Thu, 16 Mar 2017 14:58:07 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch python3
in repository gnuradio.

commit f89685336833620de9d35a82fcf28a8d6a0455b2
Author: Sebastian Koslowski <address@hidden>
Date:   Tue Aug 2 21:05:12 2016 +0200

    grc: gtk3: fix drag and drop from block tree
---
 grc/gui/BlockTreeWindow.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py
index 4e42144..e29b6b4 100644
--- a/grc/gui/BlockTreeWindow.py
+++ b/grc/gui/BlockTreeWindow.py
@@ -263,7 +263,7 @@ class BlockTreeWindow(Gtk.VBox):
             self.search_entry.hide()
 
         elif (event.get_state() & Gdk.ModifierType.CONTROL_MASK and 
event.keyval == Gdk.KEY_f) \
-             or event.keyval == Gdk.KEY_slash:
+              or event.keyval == Gdk.KEY_slash:
             # propagation doesn't work although treeview search is disabled =(
             # manually trigger action...
             Actions.FIND_BLOCKS.activate()
@@ -284,7 +284,8 @@ class BlockTreeWindow(Gtk.VBox):
         Only call set when the key is valid to ignore DND from categories.
         """
         key = self._get_selected_block_key()
-        if key: selection_data.set(selection_data.target, 8, key)
+        if key:
+            selection_data.set_text(key, len(key))
 
     def _handle_mouse_button_press(self, widget, event):
         """



reply via email to

[Prev in Thread] Current Thread [Next in Thread]