From 760f4c209ebee6bf23438ca0c88d6aad0093c324 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Fri, 16 Nov 2001 21:22:26 +0000 Subject: s/g_param_get_{name,nick,blurb}/g_param_spec_get_{name,nick,blurb}/g 2001-11-16 Matt Wilson * 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. --- gobject/gobjectmodule.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 3f800f0..cbf32db 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 = -- cgit