diff options
author | Agustin Zubiaga <aguzubiaga97@gmail.com> | 2012-02-06 23:51:33 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguzubiaga97@gmail.com> | 2012-02-06 23:51:33 (GMT) |
commit | 62368c01ad13ea30cb00783a29449a65be93a661 (patch) | |
tree | 6caf1bae130ac568ee99d8a190da99b847350c52 | |
parent | c11b46b173612fdf70e389e58eff0416af8c286d (diff) |
Resize the chart after that unfullscreen
-rw-r--r-- | activity.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activity.py b/activity.py index c6a72f0..af81510 100644 --- a/activity.py +++ b/activity.py @@ -311,9 +311,11 @@ class SimpleGraph(activity.Activity): def unfullscreen(self): self.box.show() - self._render_chart(fullscreen=False) 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) @@ -348,6 +350,8 @@ class SimpleGraph(activity.Activity): else: self.current_chart.render() + return False + def _update_chart_data(self): if self.current_chart is None: return |