svn: r16993
This commit is contained in:
Doug Blank 2011-03-30 19:01:21 +00:00
parent e7f04aa2e1
commit 452538b370

View File

@ -151,7 +151,7 @@ def make_requested_gramplet(gui_class, pane, opts, dbstate, uistate):
""" """
Make a GUI gramplet given its name. Make a GUI gramplet given its name.
""" """
if name in opts: if "name" in opts:
name = opts["name"] name = opts["name"]
if name in AVAILABLE_GRAMPLETS(): if name in AVAILABLE_GRAMPLETS():
gui = gui_class(pane, dbstate, uistate, **opts) gui = gui_class(pane, dbstate, uistate, **opts)
@ -314,6 +314,7 @@ class GuiGramplet(object):
self.title = title self.title = title
self.detached_window = None self.detached_window = None
self.force_update = False self.force_update = False
self.title_override = False
self._tags = [] self._tags = []
########## Set defaults ########## Set defaults
self.gname = kwargs.get("name", "Unnamed Gramplet") self.gname = kwargs.get("name", "Unnamed Gramplet")
@ -778,6 +779,7 @@ class GridGramplet(GuiGramplet):
""" """
result = self.set_title(widget.get_text()) result = self.set_title(widget.get_text())
if result: # if ok to set title to that if result: # if ok to set title to that
self.title_override = True
self.titlelabel.show() self.titlelabel.show()
widget.hide() widget.hide()
return False # Return False for gtk requirement return False # Return False for gtk requirement