From 979cab9bf5d5986c3df3ea97d0082ed41d313190 Mon Sep 17 00:00:00 2001
From: Sebastian Koslowski <koslowski@kit.edu>
Date: Mon, 1 Aug 2016 17:27:09 +0200
Subject: grc: gtk3: better lables/shapes handling during flowgraph update

---
 grc/gui/Element.py | 34 +++++++++++++++-------------------
 1 file changed, 15 insertions(+), 19 deletions(-)

(limited to 'grc/gui/Element.py')

diff --git a/grc/gui/Element.py b/grc/gui/Element.py
index 73be7b8c92..81a5cbfc40 100644
--- a/grc/gui/Element.py
+++ b/grc/gui/Element.py
@@ -76,25 +76,6 @@ class Element(object):
         rotation = rotation or self.rotation
         return rotation in (90, 270)
 
-    def create_labels(self):
-        """
-        Create labels (if applicable) and call on all children.
-        Call this base method before creating labels in the element.
-        """
-        for child in self.get_children():
-            child.create_labels()
-
-    def create_shapes(self):
-        """
-        Create shapes (if applicable) and call on all children.
-        Call this base method before creating shapes in the element.
-        """
-        for child in self.get_children():
-            child.create_shapes()
-
-    def draw(self, widget, cr):
-        raise NotImplementedError()
-
     def rotate(self, rotation):
         """
         Rotate all of the areas by 90 degrees.
@@ -115,6 +96,21 @@ class Element(object):
         dx, dy = delta_coor
         self.coordinate = (x + dx, y + dy)
 
+    def create_labels(self):
+        """
+        Create labels (if applicable) and call on all children.
+        Call this base method before creating labels in the element.
+        """
+
+    def create_shapes(self):
+        """
+        Create shapes (if applicable) and call on all children.
+        Call this base method before creating shapes in the element.
+        """
+
+    def draw(self, widget, cr):
+        raise NotImplementedError()
+
     def bounds_from_area(self, area):
         x1, y1, w, h = area
         x2 = x1 + w
-- 
cgit v1.2.3