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

Simon Schampijer simon at schampijer.de
Tue Dec 13 15:33:13 EST 2011


On 13/12/11 16:54, Daniel Drake wrote:
> 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[];

Looks good! Please go ahead.

Regards,
    Simon




More information about the Sugar-devel mailing list