Fixed issue with state check

svn: r17553
This commit is contained in:
Doug Blank 2011-05-22 13:39:12 +00:00
parent 273ad7c240
commit 0936618091

View File

@ -983,12 +983,12 @@ class GrampletPane(gtk.ScrolledWindow):
# Load the user's gramplets:
for (name, opts) in user_gramplets:
all_opts = get_gramplet_opts(name, opts)
if "state" not in all_opts:
all_opts["state"] = "maximized"
if all_opts["state"] == "closed":
self.gramplet_map[all_opts["title"]] = None # save closed name
self.closed_opts.append(all_opts)
continue
if "state" not in all_opts:
all_opts["state"] = "maximized"
if "title" not in all_opts:
all_opts["title"] = _("Untitled Gramplet")
set_override = False