diff options
author | Matt Wilson <msw@redhat.com> | 2001-11-29 23:06:42 +0000 |
---|---|---|
committer | Matt Wilson <msw@src.gnome.org> | 2001-11-29 23:06:42 +0000 |
commit | aaf23684a7b7f62337b8d20ac776ab209ca70366 (patch) | |
tree | 3c8095b02b457f9e633a790f972a15b7c4df06ac /gtk | |
parent | 31a5a3b659d225cdd64c2f565133fd9b0d89374f (diff) | |
download | pygtk-aaf23684a7b7f62337b8d20ac776ab209ca70366.tar.gz |
fname is actually required. Added default to NULL for all arguments that
2001-11-29 Matt Wilson <msw@redhat.com>
* gtk/libglade.defs (glade_xml_new): fname is actually required.
Added default to NULL for all arguments that are null-ok.
* gtk/libglademodule.c: added missing #include pygobject.h. Why
does pygtk.h define NO_IMPORT_PYGOBJECT?
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/libglade.defs | 14 | ||||
-rw-r--r-- | gtk/libglademodule.c | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/gtk/libglade.defs b/gtk/libglade.defs index 2de261d3..b444140e 100644 --- a/gtk/libglade.defs +++ b/gtk/libglade.defs @@ -42,9 +42,9 @@ (is-constructor-of "GladeXML") (return-type "GladeXML*") (parameters - '("const-char*" "fname" (null-ok)) - '("const-char*" "root" (null-ok)) - '("const-char*" "domain" (null-ok)) + '("const-char*" "fname") + '("const-char*" "root" (null-ok) (default "NULL")) + '("const-char*" "domain" (null-ok) (default "NULL")) ) ) @@ -54,8 +54,8 @@ (parameters '("const-char*" "buffer") '("int" "size") - '("const-char*" "root" (null-ok)) - '("const-char*" "domain" (null-ok)) + '("const-char*" "root" (null-ok) (default "NULL")) + '("const-char*" "domain" (null-ok) (default "NULL")) ) ) @@ -65,8 +65,8 @@ (return-type "gboolean") (parameters '("const-char*" "fname") - '("const-char*" "root" (null-ok)) - '("const-char*" "domain" (null-ok)) + '("const-char*" "root" (null-ok) (default "NULL")) + '("const-char*" "domain" (null-ok) (default "NULL")) ) ) diff --git a/gtk/libglademodule.c b/gtk/libglademodule.c index 47679a28..16f86df6 100644 --- a/gtk/libglademodule.c +++ b/gtk/libglademodule.c @@ -3,6 +3,8 @@ # include "config.h" #endif #include <Python.h> +/* include this first, before NO_IMPORT_PYGOBJECT is defined */ +#include <pygobject.h> #include <pygtk.h> #include <glade/glade.h> |