[pitivi] Retrieve the window xid using the right method in Windows



commit d3d812a782b7e5d8e0d896060c5b7c6e5f2ba955
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Nov 14 22:25:34 2009 +0100

    Retrieve the window xid using the right method in Windows

 pitivi/ui/viewer.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index 5dfb0a9..75ae1c7 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -20,6 +20,7 @@
 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
+import platform
 import gobject
 import gtk
 from gtk import gdk
@@ -475,7 +476,10 @@ class ViewerWidget(gtk.DrawingArea, Loggable):
 
     def do_realize(self):
         gtk.DrawingArea.do_realize(self)
-        self.window_xid = self.window.xid
+        if platform.system() == 'Windows':
+            self.window_xid = self.window.handle
+        else:
+            self.window_xid  = self.window.xid
 
 class PlayPauseButton(gtk.Button, Loggable):
     """ Double state gtk.Button which displays play/pause """



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