[POS-commit] r1253 - kiwi/trunk/kiwi/ui

Johan Dahlin jdahlin at async.com.br
Thu Sep 22 10:01:32 BRT 2005


Author: jdahlin
Date: Thu Sep 22 10:01:32 2005
New Revision: 1253

Modified:
   kiwi/trunk/kiwi/ui/gazpacholoader.py
Log:
If a list of widget is not specified, add all of them

Modified: kiwi/trunk/kiwi/ui/gazpacholoader.py
==============================================================================
--- kiwi/trunk/kiwi/ui/gazpacholoader.py	(original)
+++ kiwi/trunk/kiwi/ui/gazpacholoader.py	Thu Sep 22 10:01:32 2005
@@ -69,7 +69,8 @@
         self._widgets =  (widgets or view.widgets or [])[:]
         self.gladename = gladename or filename
         self._tree = Builder(self._gladefile, domain=domain)
-
+        if not self._widgets:
+            self._widgets = [w.get_name() for w in self._tree.get_widgets()]
         self._attach_widgets()
         
     def _attach_widgets(self):


More information about the POS-commit mailing list