Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/activity.py b/activity.py
index 8353b2e..646789b 100644
--- a/activity.py
+++ b/activity.py
@@ -308,6 +308,7 @@ class SimpleGraph(activity.Activity):
eventbox = gtk.EventBox()
self.charts_area = ChartArea(self)
+ self.charts_area.connect('size_allocate', self._chart_size_allocate)
eventbox.modify_bg(gtk.STATE_NORMAL, WHITE)
@@ -335,13 +336,13 @@ class SimpleGraph(activity.Activity):
self.update_chart()
+ def _chart_size_allocate(self, widget, allocation):
+ self._render_chart()
+
def unfullscreen(self):
self.box.show()
activity.Activity.unfullscreen(self)
- # A reasonable time for the system
- gobject.timeout_add(50, self._render_chart, False)
-
def __fullscreen_cb(self, button):
self.box.hide()
self._render_chart(fullscreen=True)