diff options
| author | Murray Cumming <murrayc@murrayc.com> | 2006-08-15 17:22:38 +0000 |
|---|---|---|
| committer | Murray Cumming <murrayc@src.gnome.org> | 2006-08-15 17:22:38 +0000 |
| commit | a181cb3b4d53f35e9cb131232f7bc5c596257cf4 (patch) | |
| tree | dee0b8134eab6c7a653699f032439c39378ce50e /gobject | |
| parent | 321f8f841c397059746177777c964c893921120e (diff) | |
Replace uses of typename with type_name, because that is a reserved C++
2006-08-15 Murray Cumming <murrayc@murrayc.com>
* gobject/pygobject-private.h:
* gobject/pygobject.h:
Replace uses of typename with type_name, because that is a
reserved C++ keyword. This was breaking compilation of Glom
due its use in the new type_register_custom function pointer in
pygobject.h.
Diffstat (limited to 'gobject')
| -rw-r--r-- | gobject/pygobject-private.h | 8 | ||||
| -rw-r--r-- | gobject/pygobject.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h index 9553600..ed1cd05 100644 --- a/gobject/pygobject-private.h +++ b/gobject/pygobject-private.h @@ -136,7 +136,7 @@ void pygobject_watch_closure (PyObject *self, GClosure *closure); void pygobject_register_sinkfunc(GType type, void (* sinkfunc)(GObject *object)); int pyg_type_register (PyTypeObject *class, - const gchar *typename); + const gchar *type_name); /* from pygboxed.c */ extern PyTypeObject PyGBoxed_Type; @@ -165,7 +165,7 @@ extern PyTypeObject PyGFlags_Type; #define PyGFlags_Check(x) (g_type_is_a(((PyGFlags*)x)->gtype, G_TYPE_FLAGS)) extern PyObject * pyg_flags_add (PyObject * module, - const char * typename, + const char * type_name, const char * strip_prefix, GType gtype); extern PyObject * pyg_flags_from_gtype (GType gtype, @@ -182,7 +182,7 @@ typedef struct { extern PyTypeObject PyGEnum_Type; extern PyObject * pyg_enum_add (PyObject * module, - const char * typename, + const char * type_name, const char * strip_prefix, GType gtype); extern PyObject * pyg_enum_from_gtype (GType gtype, @@ -254,7 +254,7 @@ PyObject * pyg_option_group_new (GOptionGroup * group); GOptionGroup *pyg_option_group_transfer_group(PyGOptionGroup *self); extern GHashTable *custom_type_registration; -void pyg_type_register_custom_callback(const gchar *typename, +void pyg_type_register_custom_callback(const gchar *type_name, PyGTypeRegistrationFunction callback, gpointer data); PyTypeObject * pyg_type_get_custom(const gchar *name); diff --git a/gobject/pygobject.h b/gobject/pygobject.h index db6e36c..ce4ee00 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -145,14 +145,14 @@ struct _PyGObject_Functions { const GParamSpec* pspec); PyTypeObject *enum_type; PyObject *(*enum_add)(PyObject *module, - const char *typename_, + const char *type_name_, const char *strip_prefix, GType gtype); PyObject* (*enum_from_gtype)(GType gtype, int value); PyTypeObject *flags_type; PyObject *(*flags_add)(PyObject *module, - const char *typename_, + const char *type_name_, const char *strip_prefix, GType gtype); PyObject* (*flags_from_gtype)(GType gtype, int value); @@ -178,7 +178,7 @@ struct _PyGObject_Functions { void (*add_warning_redirection) (const char *domain, PyObject *warning); void (*disable_warning_redirections) (void); - void (*type_register_custom)(const gchar *typename, + void (*type_register_custom)(const gchar *type_name, PyGTypeRegistrationFunction callback, gpointer data); |
