Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/intro/glive.py
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-02-26 16:10:24 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-02-26 16:10:24 (GMT)
commita1f56849446ce719c94f0723d52ad8ca37e1029d (patch)
treeef5bcf6e778f42772faaf6097926364e2d811d04 /shell/intro/glive.py
parentdf1f01552dccf15b18aed9da1a6e04ad79996a6a (diff)
Make buddy icon selection a bit more consistent
Diffstat (limited to 'shell/intro/glive.py')
-rw-r--r--shell/intro/glive.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/intro/glive.py b/shell/intro/glive.py
index f02b261..b2126aa 100644
--- a/shell/intro/glive.py
+++ b/shell/intro/glive.py
@@ -22,6 +22,7 @@ class Glive(gobject.GObject):
}
def __init__(self, parent, width, height):
+ gobject.GObject.__init__(self)
self._parent = parent
#check out the halfpipe, d00d.
@@ -150,7 +151,7 @@ class LiveVideoSlot(gtk.EventBox):
self.unset_flags(gtk.DOUBLE_BUFFERED)
self.connect('focus-in-event', self.focus_in)
self.connect('focus-out-event', self.focus_out)
- self.connect("button-press-event", self.button_press)
+ self.connect("button-press-event", self._button_press_event_cb)
self.playa = Glive(self, width, height)
self.playa.connect('new-picture', self._new_picture_cb)
@@ -159,7 +160,7 @@ class LiveVideoSlot(gtk.EventBox):
def _new_picture_cb(self, playa, pixbuf):
self.emit('pixbuf', pixbuf)
- def _new_sink_sb(self, playa, sink):
+ def _new_sink_cb(self, playa, sink):
if (self.imagesink != None):
assert self.window.xid
self.imagesink = None
@@ -167,6 +168,9 @@ class LiveVideoSlot(gtk.EventBox):
self.imagesink = sink
self.imagesink.set_xwindow_id(self.window.xid)
+ def _button_press_event_cb(self, widget, event):
+ self.takeSnapshot()
+
def focus_in(self, widget, event, args=None):
self.play()