Fixed issue with state check

svn: r17552
This commit is contained in:
Doug Blank 2011-05-22 13:38:31 +00:00
parent b7fab3ba0d
commit 43c21ef143

View File

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