[glade] Fixed warning moving glade.h include after pythons.



commit ed87745317b3cb998c68e06d0f7f9f876b1869bd
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Thu Mar 3 01:03:47 2011 -0300

    Fixed warning moving glade.h include after pythons.

 plugins/python/glade-python.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/plugins/python/glade-python.c b/plugins/python/glade-python.c
index a5a3456..833b7de 100644
--- a/plugins/python/glade-python.c
+++ b/plugins/python/glade-python.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2008 Juan Pablo Ugarte.
+ * Copyright (C) 2006-2011 Juan Pablo Ugarte.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as
@@ -21,11 +21,11 @@
 
 #include <config.h>
 
-#include <gladeui/glade.h>
-
 #include <Python.h>
 #include <pygobject.h>
 
+#include <gladeui/glade.h>
+
 static void
 python_init (void)
 {
@@ -133,6 +133,9 @@ glade_python_init (const gchar * name)
 
   /* Yeah, we use the catalog name as the library */
   import_sentence = g_strdup_printf ("import %s;", name);
+
+  /* Importing the module will create all the GTypes so that glade can use them at runtime */
   PyRun_SimpleString (import_sentence);
+  
   g_free (import_sentence);
 }



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