meld r1203 - trunk
- From: vincele svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1203 - trunk
- Date: Mon, 2 Mar 2009 22:18:47 +0000 (UTC)
Author: vincele
Date: Mon Mar 2 22:18:47 2009
New Revision: 1203
URL: http://svn.gnome.org/viewvc/meld?rev=1203&view=rev
Log:
Dangerous default value
Modified:
trunk/gnomeglade.py
Modified: trunk/gnomeglade.py
==============================================================================
--- trunk/gnomeglade.py (original)
+++ trunk/gnomeglade.py Mon Mar 2 22:18:47 2009
@@ -36,10 +36,12 @@
object, which is sadly sometimes necessary.
"""
- def __init__(self, filename, root, override={}):
+ def __init__(self, filename, root, override=None):
"""Load the widgets from the node 'root' in file 'filename'.
"""
gtk.glade.set_custom_handler(self.get_custom_handler)
+ if override is None:
+ override = {}
self.xml = gtk.glade.XML(filename, root, typedict=override)
self.xml.signal_autoconnect(self)
self.widget = getattr(self, root)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]