Merge branch 'upstream' into dfsg-orig
[debian/gnuradio] / grc / python / Connection.py
index d8a894bb176a97556bde92b6f572fb680033567a..edc18841a00b7844d6c203bf6af1ca19263115d4 100644 (file)
@@ -1,5 +1,5 @@
 """
-Copyright 2008 Free Software Foundation, Inc.
+Copyright 2008, 2009 Free Software Foundation, Inc.
 This file is part of GNU Radio
 
 GNU Radio Companion is free software; you can redistribute it and/or
@@ -18,8 +18,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 """
 
 from .. base.Connection import Connection as _Connection
+from .. gui.Connection import Connection as _GUIConnection
 
-class Connection(_Connection):
+class Connection(_Connection, _GUIConnection):
+
+       def __init__(self, **kwargs):
+               _Connection.__init__(self, **kwargs)
+               _GUIConnection.__init__(self)
+
+       def is_msg(self):
+               return self.get_source().get_type() == self.get_sink().get_type() == 'msg'
 
        def validate(self):
                """