[Sugar-devel] [PATCH sugar-toolkit-gtk3] SugarExt: fix compile without pygtk

Daniel Drake dsd at laptop.org
Tue Dec 13 14:54:25 EST 2011


We no longer compile this against pygtk, so remove the include.
Add the now-required Python.h include in its place.
---
 src/sugar3/_sugarbaseextmodule.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/sugar3/_sugarbaseextmodule.c b/src/sugar3/_sugarbaseextmodule.c
index 01a70d7..ebc1310 100644
--- a/src/sugar3/_sugarbaseextmodule.c
+++ b/src/sugar3/_sugarbaseextmodule.c
@@ -22,7 +22,7 @@
 #endif
 
 /* include this first, before NO_IMPORT_PYGOBJECT is defined */
-#include <pygobject.h>
+#include <Python.h>
 
 extern PyMethodDef py_sugarbaseext_functions[];
 
-- 
1.7.7.4



More information about the Sugar-devel mailing list