summaryrefslogtreecommitdiff
path: root/gtk/gtkobject-support.c
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2001-03-18 14:56:36 +0000
committerJames Henstridge <jamesh@src.gnome.org>2001-03-18 14:56:36 +0000
commitcd197bb61c6189b1fa10128254f80f576759d3e7 (patch)
treee278510b17e97314756c838fa4dce2ed6bd9e50e /gtk/gtkobject-support.c
parent690d44965a49a990c3af598ee34fdaf96b1339b7 (diff)
downloadpygtk-cd197bb61c6189b1fa10128254f80f576759d3e7.tar.gz
Still broken. Needs more updating
2001-03-18 James Henstridge <james@daa.com.au> * gtk/pygtktreemodel.c (pygtk_tree_model_class_init): signals are now created in the gtktreemodel.c, so we don't need to. * gtk/gtk.defs (Adjustment): make parent GtkObject, as GtkData is gone. (GtkText): remove from binding. * codegen/codegen.py (write_source): pass in the get_type function when registering classes. (gettypetmpl): remove template. (write_class): remove get_type method generator. Handled by __gtype__ * gobjectmodule.c (initgobject): add argument to g_type_init call. (pyg_value_from_pyobject): use G_VALUE_HOLDS_* rather than G_IS_VALUE_*. (pyg_value_as_pyobject): same here. (pygobject_register_class): add an argument that takes the get_type function for the GObject. This is used to add a __gtype__ attribute to the class (the get_type function is not actually called until __gtype__ is accessed).
Diffstat (limited to 'gtk/gtkobject-support.c')
-rw-r--r--gtk/gtkobject-support.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gtk/gtkobject-support.c b/gtk/gtkobject-support.c
index 0e6cf67d..c3fd4255 100644
--- a/gtk/gtkobject-support.c
+++ b/gtk/gtkobject-support.c
@@ -265,14 +265,6 @@ pygtk_arg_from_pyobject(GtkArg *arg, PyObject *obj)
else
return -1;
break;
- case GTK_TYPE_SIGNAL:
- if (PyCallable_Check(obj)) {
- Py_INCREF(obj);
- GTK_VALUE_SIGNAL(*arg).f = NULL;
- GTK_VALUE_SIGNAL(*arg).d = obj;
- } else
- return -1;
- break;
}
return 0;
}
@@ -341,9 +333,6 @@ pygtk_arg_as_pyobject(GtkArg *arg)
return fs->fromarg(GTK_VALUE_BOXED(*arg));
return PyCObject_FromVoidPtr(GTK_VALUE_BOXED(*arg), NULL);
}
- case GTK_TYPE_SIGNAL:
- Py_INCREF((PyObject *)GTK_VALUE_SIGNAL(*arg).d);
- return (PyObject *)GTK_VALUE_SIGNAL(*arg).d;
default:
g_assert_not_reached();
break;