examples/play.py: Fix the sample player slightly so that the expose method actually gets called by pyGTK.

Original commit message from CVS:
* examples/play.py:
Fix the sample player slightly so that the expose method
actually gets called by pyGTK.
This commit is contained in:
Jan Schmidt 2007-10-18 15:10:44 +00:00
parent 13804466c9
commit eb8637606b
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-10-18 Jan Schmidt <Jan.Schmidt@sun.com>
* examples/play.py:
Fix the sample player slightly so that the expose method
actually gets called by pyGTK.
2007-10-18 Edward Hervey <bilboed@bilboed.com>
* gst/gst.defs:

View file

@ -270,6 +270,11 @@ def main(args):
sys.stderr.write("usage: %s URI-OF-MEDIA-FILE\n" % args[0])
sys.exit(1)
# Need to register our derived widget types for implicit event
# handlers to get called.
gobject.type_register(PlayerWindow)
gobject.type_register(VideoWidget)
w = PlayerWindow()
if len(args) != 2: