[pygobject/gsoc2009: 100/160] Refactor _wrap_g_value_info_get_value
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject/gsoc2009: 100/160] Refactor _wrap_g_value_info_get_value
- Date: Fri, 14 Aug 2009 21:31:57 +0000 (UTC)
commit 482e7126d7065ddce4a12c920030246d8645c503
Author: Simon van der Linden <svdlinden src gnome org>
Date: Mon Aug 3 16:07:05 2009 +0200
Refactor _wrap_g_value_info_get_value
gi/pygiinfo.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gi/pygiinfo.c b/gi/pygiinfo.c
index f800b90..7e48616 100644
--- a/gi/pygiinfo.c
+++ b/gi/pygiinfo.c
@@ -1443,11 +1443,9 @@ _wrap_g_value_info_get_value(PyGIBaseInfo *self)
{
glong value;
- g_base_info_ref(self->info);
- value = g_value_info_get_value((GIValueInfo*)self->info);
- g_base_info_unref(self->info);
+ value = g_value_info_get_value((GIValueInfo *)self->info);
- return PyLong_FromLong(value);
+ return PyInt_FromLong(value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]