From 0936618091cbbef1fccf6c9413874c3ee3c7d3cc Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 22 May 2011 13:39:12 +0000 Subject: [PATCH] Fixed issue with state check svn: r17553 --- src/gui/widgets/grampletpane.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/grampletpane.py b/src/gui/widgets/grampletpane.py index e22bf7d80..a188a74ee 100644 --- a/src/gui/widgets/grampletpane.py +++ b/src/gui/widgets/grampletpane.py @@ -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