[rhythmbox] python: fix override for rhythmdb_entry_count_by_type
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] python: fix override for rhythmdb_entry_count_by_type
- Date: Sat, 27 Mar 2010 01:14:35 +0000 (UTC)
commit 579ce745567fedaedd715d9e1f7d43cf5cdaa479
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Mar 27 11:10:45 2010 +1000
python: fix override for rhythmdb_entry_count_by_type
The number of arguments for PyArg_ParseTupleAndKeywords was wrong, and
it was converting 'self' rather than 'entrytype' into a RhythmDBEntryType.
bindings/python/rhythmdb.override | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/bindings/python/rhythmdb.override b/bindings/python/rhythmdb.override
index cf98d27..a73c027 100644
--- a/bindings/python/rhythmdb.override
+++ b/bindings/python/rhythmdb.override
@@ -113,12 +113,12 @@ _wrap_rhythmdb_entry_count_by_type(PyGObject *self, PyObject *args, PyObject *kw
RhythmDBEntryType et;
gint64 ret;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:RhythmDB.entry_count_by_type", kwlist, &py_entrytype))
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:RhythmDB.entry_count_by_type", kwlist, &py_entrytype))
return NULL;
if (pyg_boxed_check(py_entrytype, RHYTHMDB_TYPE_ENTRY_TYPE))
- et = pyg_boxed_get(self, RhythmDBEntryType_);
+ et = pyg_boxed_get(py_entrytype, RhythmDBEntryType_);
else {
- char *s = g_strdup_printf ("self should be a RhythmDBEntryType, is a %s", g_type_name (pyg_type_from_object ((PyObject*)self)));
+ char *s = g_strdup_printf ("entrytype should be a RhythmDBEntryType, is a %s", g_type_name (pyg_type_from_object ((PyObject*)py_entrytype)));
PyErr_SetString(PyExc_TypeError, s);
g_free (s);
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]