From 43c21ef1432fdf506fdabc2f60d2e44e67c141a5 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 22 May 2011 13:38:31 +0000 Subject: [PATCH] Fixed issue with state check svn: r17552 --- 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 48e27675c..dbfaf1875 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