diff options
author | Matt Wilson <msw@redhat.com> | 2001-11-16 21:22:26 +0000 |
---|---|---|
committer | Matt Wilson <msw@src.gnome.org> | 2001-11-16 21:22:26 +0000 |
commit | 4d24c504a584b4c24e6d22661bb1d8b5e107feba (patch) | |
tree | d3cc1b6a11267ff80788e089d3128f4c173c56be | |
parent | ec37040d841792f665e79356aef6d6b335d2b5fb (diff) | |
download | pygtk-4d24c504a584b4c24e6d22661bb1d8b5e107feba.tar.gz |
s/g_param_get_{name,nick,blurb}/g_param_spec_get_{name,nick,blurb}/g
2001-11-16 Matt Wilson <msw@redhat.com>
* gobjectmodule.c (pyg_param_spec_getattr, pyg_param_spec_repr):
s/g_param_get_{name,nick,blurb}/g_param_spec_get_{name,nick,blurb}/g
(pyg_fatal_exceptions_notify_remove): use the right type.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gobject/gobjectmodule.c | 10 | ||||
-rw-r--r-- | gobjectmodule.c | 10 |
3 files changed, 14 insertions, 10 deletions
@@ -1,5 +1,9 @@ 2001-11-16 Matt Wilson <msw@redhat.com> + * gobjectmodule.c (pyg_param_spec_getattr, pyg_param_spec_repr): + s/g_param_get_{name,nick,blurb}/g_param_spec_get_{name,nick,blurb}/g + (pyg_fatal_exceptions_notify_remove): use the right type. + * gtk/pygtk.h (init_pygtk): need to cast to the right type for _PyGTK_API init. diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 3f800f05..cbf32db7 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -129,7 +129,7 @@ pyg_param_spec_repr(PyGParamSpec *self) g_snprintf(buf, sizeof(buf), "<%s '%s'>", G_PARAM_SPEC_TYPE_NAME(self->pspec), - g_param_get_name(self->pspec)); + g_param_spec_get_name(self->pspec)); return PyString_FromString(buf); } @@ -150,21 +150,21 @@ pyg_param_spec_getattr(PyGParamSpec *self, const gchar *attr) } else if (!strcmp(attr, "__gtype__")) { return pyg_type_wrapper_new(G_PARAM_SPEC_TYPE(self->pspec)); } else if (!strcmp(attr, "name")) { - const gchar *name = g_param_get_name(self->pspec); + const gchar *name = g_param_spec_get_name(self->pspec); if (name) return PyString_FromString(name); Py_INCREF(Py_None); return Py_None; } else if (!strcmp(attr, "nick")) { - const gchar *nick = g_param_get_nick(self->pspec); + const gchar *nick = g_param_spec_get_nick(self->pspec); if (nick) return PyString_FromString(nick); Py_INCREF(Py_None); return Py_None; } else if (!strcmp(attr, "blurb") || !strcmp(attr, "__doc__")) { - const gchar *blurb = g_param_get_blurb(self->pspec); + const gchar *blurb = g_param_spec_get_blurb(self->pspec); if (blurb) return PyString_FromString(blurb); @@ -2303,7 +2303,7 @@ pyg_fatal_exceptions_notify_add(PyGFatalExceptionFunc func) g_list_append(pygobject_exception_notifiers, &func); } -static int +static void pyg_fatal_exceptions_notify_remove(PyGFatalExceptionFunc func) { pygobject_exception_notifiers = diff --git a/gobjectmodule.c b/gobjectmodule.c index 3f800f05..cbf32db7 100644 --- a/gobjectmodule.c +++ b/gobjectmodule.c @@ -129,7 +129,7 @@ pyg_param_spec_repr(PyGParamSpec *self) g_snprintf(buf, sizeof(buf), "<%s '%s'>", G_PARAM_SPEC_TYPE_NAME(self->pspec), - g_param_get_name(self->pspec)); + g_param_spec_get_name(self->pspec)); return PyString_FromString(buf); } @@ -150,21 +150,21 @@ pyg_param_spec_getattr(PyGParamSpec *self, const gchar *attr) } else if (!strcmp(attr, "__gtype__")) { return pyg_type_wrapper_new(G_PARAM_SPEC_TYPE(self->pspec)); } else if (!strcmp(attr, "name")) { - const gchar *name = g_param_get_name(self->pspec); + const gchar *name = g_param_spec_get_name(self->pspec); if (name) return PyString_FromString(name); Py_INCREF(Py_None); return Py_None; } else if (!strcmp(attr, "nick")) { - const gchar *nick = g_param_get_nick(self->pspec); + const gchar *nick = g_param_spec_get_nick(self->pspec); if (nick) return PyString_FromString(nick); Py_INCREF(Py_None); return Py_None; } else if (!strcmp(attr, "blurb") || !strcmp(attr, "__doc__")) { - const gchar *blurb = g_param_get_blurb(self->pspec); + const gchar *blurb = g_param_spec_get_blurb(self->pspec); if (blurb) return PyString_FromString(blurb); @@ -2303,7 +2303,7 @@ pyg_fatal_exceptions_notify_add(PyGFatalExceptionFunc func) g_list_append(pygobject_exception_notifiers, &func); } -static int +static void pyg_fatal_exceptions_notify_remove(PyGFatalExceptionFunc func) { pygobject_exception_notifiers = |