[pitivi] viewer: Try to import GdkX11 as it will be needed to embed window on X11



commit a5b32ed4684276641904e1a02b1f653a532fcf35
Author: Thibault Saunier <tsaunier gnome org>
Date:   Wed Oct 22 18:45:38 2014 +0200

    viewer: Try to import GdkX11 as it will be needed to embed window on X11
    
    Fixing:
      AttributeError: 'gtk.gdk.X11Window' object has no attribute 'get_xid'

 pitivi/viewer.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 930dd59..36435bf 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -23,6 +23,11 @@ from gi.repository import Clutter
 from gi.repository import Gtk
 from gi.repository import GtkClutter
 from gi.repository import Gdk
+try:
+    from gi.repository import GdkX11
+except ImportError:
+
+    pass
 from gi.repository import Gst
 from gi.repository import GObject
 from gi.repository import GES


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