meld r1262 - trunk



Author: stevek
Date: Sun Mar 15 16:56:32 2009
New Revision: 1262
URL: http://svn.gnome.org/viewvc/meld?rev=1262&view=rev

Log:
Gtk containers can be cast to a list which is not what we want.

Modified:
   trunk/gnomeglade.py

Modified: trunk/gnomeglade.py
==============================================================================
--- trunk/gnomeglade.py	(original)
+++ trunk/gnomeglade.py	Sun Mar 15 16:56:32 2009
@@ -125,9 +125,7 @@
             except AttributeError:
                 print "Widget '%s' not found in %s" % (widgetname, obj)
                 continue
-            try:
-                widget = list(widget)
-            except TypeError:
+            if not isinstance(widget,list):
                 widget = [widget]
             for w in widget:
                 try:



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