meld r1132 - trunk
- From: stevek svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1132 - trunk
- Date: Mon, 19 Jan 2009 09:08:05 +0000 (UTC)
Author: stevek
Date: Mon Jan 19 09:08:05 2009
New Revision: 1132
URL: http://svn.gnome.org/viewvc/meld?rev=1132&view=rev
Log:
Handle case where "widget" is a list.
Modified:
trunk/gnomeglade.py
Modified: trunk/gnomeglade.py
==============================================================================
--- trunk/gnomeglade.py (original)
+++ trunk/gnomeglade.py Mon Jan 19 09:08:05 2009
@@ -124,12 +124,17 @@
print "Widget '%s' not found in %s" % (widgetname, obj)
continue
try:
- if when == 'on':
- widget.connect(signal, method)
- elif when == 'after':
- widget.connect_after(signal, method)
- except TypeError, e:
- print e, "in", obj, attr
+ widget = list(widget)
+ except TypeError:
+ widget = [widget]
+ for w in widgets:
+ try:
+ if when == 'on':
+ w.connect(signal, method)
+ elif when == 'after':
+ w.connect_after(signal, method)
+ except TypeError, e:
+ print e, "in", obj, attr
elif attr.startswith('on_') or attr.startswith('after_'):
continue # don't warn until all old code updated
# Warn about some possible typos like separating
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]