summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2016-02-21 18:20:13 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2016-02-27 11:11:53 -0300
commit5610c1d56d0a17ce6d0ee1a771a6f1212032939a (patch)
treee526e46c73645d6a155f0734ba718a0c585c2f5f /plugins
parent9708d81887066332b3f2dd063fb4f353f8073dd9 (diff)
downloadglade-5610c1d56d0a17ce6d0ee1a771a6f1212032939a.tar.gz
plugins/python/glade-python.c: Make sure we load Gtk 3
Diffstat (limited to 'plugins')
-rw-r--r--plugins/python/glade-python.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/python/glade-python.c b/plugins/python/glade-python.c
index 41116838..c7d38774 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);