Fixed unnecessary redraw when detaching gramplet

svn: r11541
This commit is contained in:
Doug Blank 2008-12-30 15:58:33 +00:00
parent b8a7153e60
commit f502d61904

View File

@ -567,7 +567,7 @@ class GuiGramplet:
def detach(self): def detach(self):
# hide buttons: # hide buttons:
self.set_state("maximized") self.set_state("windowed")
self.gvclose.hide() self.gvclose.hide()
self.gvstate.hide() self.gvstate.hide()
self.gvproperties.hide() self.gvproperties.hide()
@ -576,7 +576,6 @@ class GuiGramplet:
self.viewpage.detached_gramplets.append(self) self.viewpage.detached_gramplets.append(self)
# make a window, and attach it there # make a window, and attach it there
self.detached_window = GrampletWindow(self) self.detached_window = GrampletWindow(self)
self.state = "windowed"
def set_state(self, state): def set_state(self, state):
self.state = state self.state = state
@ -599,7 +598,7 @@ class GuiGramplet:
fill, fill,
padding, padding,
pack) pack)
if self.pui: if state == "maximized" and self.pui:
self.pui.update() self.pui.update()
def change_state(self, obj): def change_state(self, obj):