[glade] plugins/python/glade-python.c: Make sure we load Gtk 3



commit 5610c1d56d0a17ce6d0ee1a771a6f1212032939a
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Sun Feb 21 18:20:13 2016 -0300

    plugins/python/glade-python.c: Make sure we load Gtk 3

 plugins/python/glade-python.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/python/glade-python.c b/plugins/python/glade-python.c
index 4111683..c7d3877 100644
--- a/plugins/python/glade-python.c
+++ b/plugins/python/glade-python.c
@@ -154,6 +154,9 @@ glade_python_setup ()
   /* Close python statement */
   g_string_append (command, "];\n");
 
+  /* Make sure we load Gtk 3 */
+  g_string_append (command, "import gi; gi.require_version('Gtk', '3.0');\n");
+
   /* Finally run statement in vm */
   PyRun_SimpleString (command->str);
 


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