summaryrefslogtreecommitdiff
path: root/gtk/pygtktreemodel.c
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2001-09-28 23:43:47 +0000
committerJames Henstridge <jamesh@src.gnome.org>2001-09-28 23:43:47 +0000
commite0ef227e050134d9b0d9397865dd3c5053ba8d8f (patch)
tree1da46f929fc547582755dfc50cde016f04245299 /gtk/pygtktreemodel.c
parentc6a29df6dd65bbede61d2253637886789bebda51 (diff)
downloadpygtk-e0ef227e050134d9b0d9397865dd3c5053ba8d8f.tar.gz
use pyg_type_from_object instead. Based on patch from Elliot.
2001-09-29 James Henstridge <james@daa.com.au> * gtk/pygtktreemodel.c (pygtk_tree_model_get_column_type): use pyg_type_from_object instead. Based on patch from Elliot. * gtk/gtk.override (_wrap_gtk_selection_data__get_data): convert getter to a function to match codegen changes. * : merge in python22-branch (see changelog entries below).
Diffstat (limited to 'gtk/pygtktreemodel.c')
-rw-r--r--gtk/pygtktreemodel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/pygtktreemodel.c b/gtk/pygtktreemodel.c
index 91dfdc74..92b7dd0f 100644
--- a/gtk/pygtktreemodel.c
+++ b/gtk/pygtktreemodel.c
@@ -188,7 +188,7 @@ pygtk_tree_model_get_column_type(GtkTreeModel *tree_model, gint index)
py_ret = PyObject_CallMethod(self, METHOD_PREFIX "get_column_type",
"(i)", index);
if (py_ret) {
- GType ret = PyInt_AsLong(py_ret);
+ GType ret = pyg_type_from_object(py_ret);
Py_DECREF(py_ret);
return ret;