[gnome-builder] Specify versions of gi components in Jedi plugin



commit 939868dd635a31d1d705c1d61f330a5c05646fc3
Author: Tobias Schönberg <tobias47n9e gmail com>
Date:   Tue Sep 1 17:31:38 2015 +0200

    Specify versions of gi components in Jedi plugin
    
    The current build issues a few warnings during startup
    about specifying the versions of 'Gtk', 'GtkSource' and
    'Ide'. This patch adds the recommended version
    requirements prior to the other imports which reduces
    the warning shown during startup.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754403

 plugins/jedi/jedi_plugin.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/jedi/jedi_plugin.py b/plugins/jedi/jedi_plugin.py
index d4d5766..04bc168 100644
--- a/plugins/jedi/jedi_plugin.py
+++ b/plugins/jedi/jedi_plugin.py
@@ -20,6 +20,10 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+import gi
+gi.require_version('Gtk', '3.0')
+gi.require_version('GtkSource', '3.0')
+gi.require_version('Ide', '1.0')
 from gi.importer import DynamicImporter
 from gi.module import IntrospectionModule
 from gi.module import FunctionInfo


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