arek - in flumotion/trunk: . flumotion/test

flumotion-commit at lists.fluendo.com flumotion-commit at lists.fluendo.com
Mon Jul 30 21:37:53 CEST 2007


Author: arek
Date: Mon Jul 30 21:37:46 2007
New Revision: 5393

Modified:
   flumotion/trunk/ChangeLog
   flumotion/trunk/flumotion/test/gtkunit.py
Log:
	* flumotion/test/gtkunit.py (GtkTestCase.set_widget):
	flumotion-template does use the set_widget() method - revert part
	of the r5316.



Modified: flumotion/trunk/ChangeLog
==============================================================================
--- flumotion/trunk/ChangeLog	(original)
+++ flumotion/trunk/ChangeLog	Mon Jul 30 21:37:46 2007
@@ -1,5 +1,11 @@
 2007-07-30  Arek Korbik  <arkadini at gmail.com>
 
+	* flumotion/test/gtkunit.py (GtkTestCase.set_widget):
+	flumotion-template does use the set_widget() method - revert part
+	of the r5316.
+
+2007-07-30  Arek Korbik  <arkadini at gmail.com>
+
 	* flumotion/test/test_comptest.py (CompatTestCase.failUnlessFailure):
 	FINE, just provide the whole method.
 

Modified: flumotion/trunk/flumotion/test/gtkunit.py
==============================================================================
--- flumotion/trunk/flumotion/test/gtkunit.py	(original)
+++ flumotion/trunk/flumotion/test/gtkunit.py	Mon Jul 30 21:37:46 2007
@@ -140,6 +140,14 @@
         timeout_add(gtk.main_quit, increase=False)
         gtk.main()
 
+    def set_widget(self, widget):
+        self.window = gtk.Window()
+        self.widget = widget
+        set_window(self.window)
+        widget.reparent(self.window)
+        self.window.show_all()
+        pause()
+
     def toggle(self, name, process=True):
         """
         toggle a gtk.ToggleButton.


More information about the flumotion-commit mailing list