commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 02/03: grc: fix regressions from gtk3 merge


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/03: grc: fix regressions from gtk3 merge
Date: Wed, 22 Mar 2017 13:53:28 +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 114b39a434c13a239f33ff65cebce10fcebd26ec
Author: Sebastian Koslowski <address@hidden>
Date:   Wed Mar 22 13:28:25 2017 +0100

    grc: fix regressions from gtk3 merge
---
 grc/core/Port.py             | 2 +-
 grc/gui/Actions.py           | 8 ++++----
 grc/gui/canvas/connection.py | 3 +++
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/grc/core/Port.py b/grc/core/Port.py
index 14dd9cd..9ca443e 100644
--- a/grc/core/Port.py
+++ b/grc/core/Port.py
@@ -67,7 +67,7 @@ def _sources_from_virtual_source_port(source_port, 
_traversed=None):
     if not block.is_virtual_source():
         return [source_port]  # nothing to resolve, we're done
 
-    stream_id = block.get_parqam('stream_id').get_value()
+    stream_id = block.get_param('stream_id').get_value()
 
     # currently the validation does not allow multiple virtual sinks and one 
virtual source
     # but in the future it may...
diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py
index 0965847..9716206 100644
--- a/grc/gui/Actions.py
+++ b/grc/gui/Actions.py
@@ -210,13 +210,13 @@ FLOW_GRAPH_SAVE_AS = Action(
 )
 FLOW_GRAPH_SAVE_A_COPY = Action(
     label='Save A Copy',
-    tooltip='Save the copy of current flowgraph',
+    tooltip='Save the copy of current flow graph',
 )
 FLOW_GRAPH_DUPLICATE = Action(
     label='_Duplicate',
-    tooltip='Create a duplicate of current flowgraph',
-    stock_id=gtk.STOCK_COPY,
-    keypresses=(gtk.keysyms.d, gtk.gdk.CONTROL_MASK | gtk.gdk.SHIFT_MASK),
+    tooltip='Create a duplicate of current flow graph',
+    stock_id=Gtk.STOCK_COPY,
+    keypresses=(Gdk.KEY_d, Gdk.ModifierType.CONTROL_MASK | 
Gdk.ModifierType.SHIFT_MASK),
 )
 FLOW_GRAPH_CLOSE = Action(
     label='_Close',
diff --git a/grc/gui/canvas/connection.py b/grc/gui/canvas/connection.py
index 7de41a8..ff79050 100644
--- a/grc/gui/canvas/connection.py
+++ b/grc/gui/canvas/connection.py
@@ -204,6 +204,9 @@ class Connection(CoreConnection, Drawable):
         x, y = [a - b for a, b in zip(coor, self.coordinate)]
 
         cr = self._current_cr
+
+        if cr is None:
+            return
         cr.save()
         cr.new_path()
         cr.append_path(self._line_path)



reply via email to

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