pitivi r1244 - in trunk: . pitivi/ui



Author: edwardrv
Date: Thu Sep  4 14:59:30 2008
New Revision: 1244
URL: http://svn.gnome.org/viewvc/pitivi?rev=1244&view=rev

Log:
* pitivi/ui/viewer.py:
Call gtk.gdk.display_get_default().sync() before the initial call to
set_xwindow_id().
Fixes #334631  ... hopefully FOR EVER !


Modified:
   trunk/ChangeLog
   trunk/pitivi/ui/viewer.py

Modified: trunk/pitivi/ui/viewer.py
==============================================================================
--- trunk/pitivi/ui/viewer.py	(original)
+++ trunk/pitivi/ui/viewer.py	Thu Sep  4 14:59:30 2008
@@ -429,7 +429,6 @@
             dav = self.drawingarea.videosink
             gst.log('%s' % dav)
             if dav and dav.realsink and dav.realsink == message.src:
-                gtk.gdk.display_get_default().sync()
                 self.drawingarea.can_set_xid = True
                 if self.drawingarea.isexposed:
                     self.drawingarea.set_xwindow_id()
@@ -457,6 +456,7 @@
         self.isexposed = True
         if self.videosink:
             if not self.have_set_xid and self.can_set_xid:
+                gtk.gdk.display_get_default().sync()
                 self.set_xwindow_id()
             elif self.have_set_xid:
                 self.videosink.expose()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]