No point in moo_prefs_get_color, pygtk doesn't care about const arguments anyway

This commit is contained in:
Yevgen Muntyan 2005-07-25 12:43:44 +00:00
parent bb4e6d8ab2
commit 5d73a07fde

View File

@ -157,17 +157,3 @@ _wrap_moo_g_object_new (PyObject *self, PyObject *args, PyObject *kwargs)
PyErr_SetString (PyExc_NotImplementedError, "not implemented");
return NULL;
}
%%
override moo_prefs_get_color kwargs
static PyObject *
_wrap_moo_prefs_get_color (PyObject *self, PyObject *args, PyObject *kwargs)
{
static char *kwlist[] = { "key", NULL };
char *key;
const GdkColor *ret;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s:prefs_get_color", kwlist, &key))
return NULL;
ret = moo_prefs_get_color(key);
return pyg_boxed_new (GDK_TYPE_COLOR, ret, TRUE, TRUE);
}