From 2db7113c5d7dd536c08fae8644026edba4c27eb9 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 16 Jan 2009 23:05:42 +0000 Subject: [PATCH] Add update_all method to Gramplet to update directly without the gobject idle processing method svn: r11637 --- src/DataViews/GrampletView.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py index 72237fa69..0bff156c4 100644 --- a/src/DataViews/GrampletView.py +++ b/src/DataViews/GrampletView.py @@ -329,6 +329,12 @@ class Gramplet(object): self._idle_id = gobject.idle_add(self._updater, priority=gobject.PRIORITY_LOW - 10) + def update_all(self, *args): + self._generator = self.main() + if isinstance(self._generator, types.GeneratorType): + for step in self._generator: + pass + def interrupt(self): """ Force the generator to stop running.