Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gplay.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-02 02:05:57 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-02 02:05:57 (GMT)
commitc1464f5c02fe0d80579a3e7b09dd95696a5b0d3d (patch)
tree785b43e6a0f39a60cfeca160435fc823ac38b4e4 /gplay.py
parent6eb0a98efae33390dc6c0aad1aaee81cb6628fb1 (diff)
grayscale and other changes
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@841 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'gplay.py')
-rw-r--r--gplay.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/gplay.py b/gplay.py
index bd4f02c..81a6945 100644
--- a/gplay.py
+++ b/gplay.py
@@ -36,8 +36,7 @@ import record
class Gplay:
- def __init__(self, pca):
- self.ca = pca
+ def __init__(self):
self.window = None
self.players = []
self.playing = False
@@ -67,10 +66,11 @@ class Gplay:
def onSyncMessage(self, bus, message):
if message.structure is None:
- return
+ return True
if message.structure.get_name() == 'prepare-xwindow-id':
self.window.set_sink(message.src)
message.src.set_property('force-aspect-ratio', True)
+ return True
def setLocation(self, location):
@@ -137,7 +137,6 @@ class PlayVideoWindow(gtk.Window):
gtk.Window.__init__(self)
self.imagesink = None
- self.glive = None
self.modify_bg( gtk.STATE_NORMAL, bgd )
self.modify_bg( gtk.STATE_INSENSITIVE, bgd )
@@ -145,11 +144,6 @@ class PlayVideoWindow(gtk.Window):
self.set_flags(gtk.APP_PAINTABLE)
- def set_gplay(self, pgplay):
- self.gplay = pgplay
- self.gplay.window = self
-
-
def set_sink(self, sink):
if (self.imagesink != None):
assert self.window.xid