Start out dirty and not active; removed debugging stuff

svn: r14140
This commit is contained in:
Doug Blank 2010-01-26 13:04:01 +00:00
parent 2c1a4da30c
commit e7c5d7a207
2 changed files with 2 additions and 5 deletions

View File

@ -32,8 +32,8 @@ class Gramplet(object):
Internal constructor for non-graphical gramplets.
"""
self._idle_id = 0
self.active = True
self.dirty = False
self.active = False
self.dirty = True
self._pause = False
self._generator = None
self._need_to_update = False

View File

@ -1198,7 +1198,6 @@ class GrampletView(PageView):
return 'gramps-gramplet'
def set_inactive(self):
print "gramplet page inactive..."
self.active = False
for title in self.gramplet_map:
if self.gramplet_map[title].pui:
@ -1206,14 +1205,12 @@ class GrampletView(PageView):
self.gramplet_map[title].pui.active = False
def set_active(self):
print "gramplet page active!"
self.active = True
for title in self.gramplet_map:
if self.gramplet_map[title].pui:
self.gramplet_map[title].pui.active = True
if self.gramplet_map[title].pui.dirty:
if self.gramplet_map[title].state == "maximized":
# FIXME: do in background?
self.gramplet_map[title].pui.update()
def ui_definition(self):