From 452538b370820433bdc158bde74d2d96578545a5 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 30 Mar 2011 19:01:21 +0000 Subject: [PATCH] typo svn: r16993 --- src/gui/widgets/grampletpane.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/grampletpane.py b/src/gui/widgets/grampletpane.py index 4dd73bf15..f7c53a986 100644 --- a/src/gui/widgets/grampletpane.py +++ b/src/gui/widgets/grampletpane.py @@ -151,7 +151,7 @@ def make_requested_gramplet(gui_class, pane, opts, dbstate, uistate): """ Make a GUI gramplet given its name. """ - if name in opts: + if "name" in opts: name = opts["name"] if name in AVAILABLE_GRAMPLETS(): gui = gui_class(pane, dbstate, uistate, **opts) @@ -314,6 +314,7 @@ class GuiGramplet(object): self.title = title self.detached_window = None self.force_update = False + self.title_override = False self._tags = [] ########## Set defaults self.gname = kwargs.get("name", "Unnamed Gramplet") @@ -778,6 +779,7 @@ class GridGramplet(GuiGramplet): """ result = self.set_title(widget.get_text()) if result: # if ok to set title to that + self.title_override = True self.titlelabel.show() widget.hide() return False # Return False for gtk requirement