Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-09-01 22:01:49 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-09-01 22:01:49 (GMT)
commit63e868a19ee51310774d294d9d4bc31c9d5215c2 (patch)
treef300e643d5d162cad71fafee01d5c76ca926b2d1
parent2f602d6a7cd20c62ac304031df11e772f7c06d65 (diff)
Fix unfullscreen unfocus bug
-rwxr-xr-xhello-integration.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/hello-integration.py b/hello-integration.py
index ba77581..05b8617 100755
--- a/hello-integration.py
+++ b/hello-integration.py
@@ -132,10 +132,6 @@ class GraphPlotter(gtk.Window):
self._vbox.show()
self._is_fullscreen = False
- self._unfullscreen_button = UnfullscreenButton()
- self._unfullscreen_button.set_transient_for(self)
- self._unfullscreen_button.connect_button_press(
- lambda w, e: self.unfullscreen())
self.connect('motion-notify-event', self.motion_cb)
self.connect('expose-event', self.expose_event)
@@ -161,17 +157,18 @@ class GraphPlotter(gtk.Window):
def fullscreen(self):
self.options.hide()
-
self._is_fullscreen = True
-
+ self._unfullscreen_button = UnfullscreenButton()
+ self._unfullscreen_button.set_transient_for(self)
+ self._unfullscreen_button.connect_button_press(
+ lambda w, e: self.unfullscreen())
self._unfullscreen_button.show()
gtk.Window.fullscreen(self)
def unfullscreen(self):
self.options.show()
self._is_fullscreen = False
-
- self._unfullscreen_button.hide()
+ self._unfullscreen_button.destroy()
gtk.Window.unfullscreen(self)
def export(self, widget, data):