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-07-11 17:26:21 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-07-11 17:26:21 (GMT)
commit66b752a02724b35ede9d89e1d23d821f561e0758 (patch)
tree9554456a85eda07c6f00d3e40390f1aa2bbd73e5 /gplay.py
parentd6959ac6761dd01a83f92d62672944bd41130159 (diff)
Renamed Record activity (2)
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@175 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'gplay.py')
-rw-r--r--gplay.py35
1 files changed, 16 insertions, 19 deletions
diff --git a/gplay.py b/gplay.py
index 98487ff..67c282b 100644
--- a/gplay.py
+++ b/gplay.py
@@ -1,9 +1,3 @@
-#!/usr/bin/env python
-# -*- Mode: Python -*-
-# vi:si:et:sw=4:sts=4:ts=4
-
-from controller import Controller
-
import gtk
import pygtk
pygtk.require('2.0')
@@ -18,9 +12,9 @@ gobject.threads_init()
class Gplay:
- def __init__(self, pop):
- self._pop = pop
-
+ def __init__(self, pca):
+ self.ca = pca
+ self.window = None
self.players = []
self.nextMovie()
@@ -47,7 +41,7 @@ class Gplay:
if message.structure is None:
return
if message.structure.get_name() == 'prepare-xwindow-id':
- self._pop.set_sink(message.src)
+ self.window.set_sink(message.src)
message.src.set_property('force-aspect-ratio', True)
def setLocation(self, location):
@@ -73,22 +67,25 @@ class Gplay:
self.nextMovie()
-class PlayVideoSlot(gtk.EventBox):
-
- def __init__(self, pc):
- gtk.EventBox.__init__(self)
-
- self._c = pc
- self._c._playvideo = self
+class PlayVideoWindow(gtk.Window):
+ def __init__(self):
+ gtk.Window.__init__(self)
self.imagesink = None
+ self.glive = None
+
self.unset_flags(gtk.DOUBLE_BUFFERED)
- self.playa = Gplay(self)
+ 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
self.imagesink = None
del self.imagesink
self.imagesink = sink
- self.imagesink.set_xwindow_id(self.window.xid)
+ self.imagesink.set_xwindow_id(self.window.xid) \ No newline at end of file