[rhythmbox/gobject-introspection: 33/34] fix is-widget check
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/gobject-introspection: 33/34] fix is-widget check
- Date: Wed, 14 Jul 2010 05:58:51 +0000 (UTC)
commit 59c99879c8eac1ae4e51ae90ac188fd04097effb
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Jul 14 15:39:37 2010 +1000
fix is-widget check
shell/rb-python-plugin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/rb-python-plugin.c b/shell/rb-python-plugin.c
index b8f5c53..a1aa600 100644
--- a/shell/rb-python-plugin.c
+++ b/shell/rb-python-plugin.c
@@ -84,7 +84,7 @@ check_py_object_is_gtk_widget (PyObject *py_obj)
}
ret = FALSE;
- switch (PyObject_IsSubclass (py_obj, pytype)) {
+ switch (PyObject_IsInstance (py_obj, pytype)) {
case 1:
ret = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]