diff options
author | Balint Seeber | 2013-01-18 16:26:09 -0800 |
---|---|---|
committer | Balint Seeber | 2013-01-18 16:43:18 -0800 |
commit | d3c7e93f2143e31ed5ff80aa21c8d983df92d19f (patch) | |
tree | 290b73221cc4b01e17d23333165c1317a2344582 | |
parent | 2190f94d08855676a1f837c4520831d3987d1148 (diff) | |
download | gnuradio-d3c7e93f2143e31ed5ff80aa21c8d983df92d19f.tar.gz gnuradio-d3c7e93f2143e31ed5ff80aa21c8d983df92d19f.tar.bz2 gnuradio-d3c7e93f2143e31ed5ff80aa21c8d983df92d19f.zip |
Removed check for pending events during mouse drag of GRC blocks on FlowGraph canvas.
This is always true on Windows with latest PyGTK and so blocks would never move with mouse movement.
Disabling the check appears to have no adverse effects.
-rw-r--r-- | grc/gui/FlowGraph.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py index 67e5af97b..6af4bcb62 100644 --- a/grc/gui/FlowGraph.py +++ b/grc/gui/FlowGraph.py @@ -494,8 +494,9 @@ class FlowGraph(Element): Move a selected element to the new coordinate. Auto-scroll the scroll bars at the boundaries. """ - #to perform a movement, the mouse must be pressed, no pending events - if gtk.events_pending() or not self.mouse_pressed: return + #to perform a movement, the mouse must be pressed + # (no longer checking pending events via gtk.events_pending() - always true in Windows) + if not self.mouse_pressed: return #perform autoscrolling width, height = self.get_size() x, y = coordinate |