conduit r1385 - in trunk: . conduit/gtkui



Author: jstowers
Date: Fri Mar 21 06:17:04 2008
New Revision: 1385
URL: http://svn.gnome.org/viewvc/conduit?rev=1385&view=rev

Log:
2008-03-21  John Stowers  <john stowers gmail com>

	* conduit/gtkui/Canvas.py: Call update_appearance whenever a dp is
	added to/removed from a conduit. Fixes #523575



Modified:
   trunk/ChangeLog
   trunk/conduit/gtkui/Canvas.py

Modified: trunk/conduit/gtkui/Canvas.py
==============================================================================
--- trunk/conduit/gtkui/Canvas.py	(original)
+++ trunk/conduit/gtkui/Canvas.py	Fri Mar 21 06:17:04 2008
@@ -830,6 +830,8 @@
 
 
     def update_appearance(self):
+        self._resize_height()
+    
         #update the twowayness of the connectors
         for c in self.connectorItems.values():
             c.set_two_way(self.model.is_two_way())
@@ -879,9 +881,8 @@
                     )
                 self.connectorItems[item] = c
 
-        self._resize_height()
         self._add_progress_text()
-
+        self.update_appearance()
 
     def delete_dataprovider_canvas_item(self, item):
         """
@@ -902,8 +903,8 @@
             self.sinkDpItems.remove(item)
             self._delete_connector(item)
 
-        self._resize_height()
         self._remove_overlap()
+        self.update_appearance()
 
     def set_height(self, h):
         self.bounding_box.set_property("height",h)



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