[gnome-builder] fpaste: add gi.require_version()



commit f60df115ea653e201f4b7547821e1a8cfba85b20
Author: Christian Hergert <christian hergert me>
Date:   Tue Mar 8 14:38:40 2016 -0800

    fpaste: add gi.require_version()
    
    This is warning in some places, notably when trying builder on a fresh
    fedora install.

 plugins/fpaste/fpaste_plugin/__init__.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/fpaste/fpaste_plugin/__init__.py b/plugins/fpaste/fpaste_plugin/__init__.py
index e547f72..7620b16 100644
--- a/plugins/fpaste/fpaste_plugin/__init__.py
+++ b/plugins/fpaste/fpaste_plugin/__init__.py
@@ -21,6 +21,12 @@
 
 from gettext import gettext as _
 
+import gi
+
+gi.require_version('Gdk', '3.0')
+gi.require_version('Gtk', '3.0')
+gi.require_version('Ide', '1.0')
+
 from gi.repository import Gio
 from gi.repository import GLib
 from gi.repository import GObject


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