|author||Balint Seeber <[email protected]>||2013-01-19 00:26:09 (GMT)|
|committer||Balint Seeber <[email protected]>||2013-01-19 00:43:18 (GMT)|
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.
1 files changed, 3 insertions, 2 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index 67e5af9..6af4bcb 100644
@@ -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
width, height = self.get_size()
x, y = coordinate