From e7c5d7a2070c7a9358ec0527e302d62a39327163 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 26 Jan 2010 13:04:01 +0000 Subject: [PATCH] Start out dirty and not active; removed debugging stuff svn: r14140 --- src/gen/plug/_gramplet.py | 4 ++-- src/plugins/view/grampletview.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gen/plug/_gramplet.py b/src/gen/plug/_gramplet.py index 58ddfeca1..e17adbbe1 100644 --- a/src/gen/plug/_gramplet.py +++ b/src/gen/plug/_gramplet.py @@ -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 diff --git a/src/plugins/view/grampletview.py b/src/plugins/view/grampletview.py index 7959a5ba6..f5aa6a755 100644 --- a/src/plugins/view/grampletview.py +++ b/src/plugins/view/grampletview.py @@ -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):