Fixed issue with state check
svn: r17552
This commit is contained in:
parent
b7fab3ba0d
commit
43c21ef143
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user