Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ui.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-12-21 18:23:41 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-12-21 18:23:41 (GMT)
commitf99a108dea00e5b43b0822c55afd4836eda238ed (patch)
treee4954299ad688bf76a9d52450855e8ea4e8bc931 /ui.py
parent8f95271101b02d65d178db9ccfcb45374117bc16 (diff)
working on u1 666
git-svn-id: http://mediamods.com/public-svn/camera-activity/tags/48@988 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'ui.py')
-rw-r--r--ui.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui.py b/ui.py
index 7706ed4..6fa1247 100644
--- a/ui.py
+++ b/ui.py
@@ -401,6 +401,8 @@ class UI:
self.addToWindowStack( self.playLiveWindow, self.windowStack[len(self.windowStack)-1] )
self.playLiveWindow.set_events(gtk.gdk.BUTTON_RELEASE_MASK)
self.playLiveWindow.connect("button_release_event", self._playLiveButtonReleaseCb)
+ self.playLiveWindow.add_events(gtk.gdk.VISIBILITY_NOTIFY_MASK)
+ self.playLiveWindow.connect("visibility-notify-event", self._visibleNotifyCb)
self.recordWindow = RecordWindow(self)
self.addToWindowStack( self.recordWindow, self.windowStack[len(self.windowStack)-1] )
@@ -447,7 +449,10 @@ class UI:
elif (widget == self.livePhotoWindow and self.ca.m.MODE == Constants.MODE_PHOTO and self.FULLSCREEN and event.state == gtk.gdk.VISIBILITY_FULLY_OBSCURED and not self.LIVEMODE):
temp_ACTIVE = False
print("b")
- elif (widget == self.liveVideoWindow and (self.ca.m.MODE == Constants.MODE_PHOTO or self.ca.m.MODE == Constants.MODE_VIDEO) and self.FULLSCREEN and event.state == gtk.gdk.VISIBILITY_FULLY_OBSCURED and self.LIVEMODE):
+ elif (widget == self.liveVideoWindow and self.ca.m.MODE == Constants.MODE_PHOTO and self.FULLSCREEN and event.state == gtk.gdk.VISIBILITY_FULLY_OBSCURED and self.LIVEMODE):
+ temp_ACTIVE = False
+ print("c")
+ elif (widget == self.playLiveWindow and self.ca.m.MODE == Constants.MODE_VIDEO and self.FULLSCREEN and event.state == gtk.gdk.VISIBILITY_FULLY_OBSCURED and self.LIVEMODE):
temp_ACTIVE = False
print("c")
elif (widget == self.playOggWindow and self.ca.m.MODE == Constants.MODE_VIDEO and self.FULLSCREEN and event.state == gtk.gdk.VISIBILITY_FULLY_OBSCURED and not self.LIVEMODE):