diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-04-02 15:13:03 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-04-02 15:13:03 +0000 |
commit | e8d3fce47abb329756f738e8031b33d41fd4e771 (patch) | |
tree | 50187953351a5d1b5d760d52212be6b3d15b69a8 /gtk | |
parent | db1cc34d52660412224937180e53e0ee39645422 (diff) | |
download | pygtk-e8d3fce47abb329756f738e8031b33d41fd4e771.tar.gz |
remove unused duplicated functions
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtktreeview.override | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/gtk/gtktreeview.override b/gtk/gtktreeview.override index 9eee9028..c161cbbc 100644 --- a/gtk/gtktreeview.override +++ b/gtk/gtktreeview.override @@ -69,16 +69,6 @@ ignore gtk_list_store_insert_with_values gtk_list_store_insert_with_valuesv %% -override gtk_tree_view_get_visible_rect noargs -static PyObject * -_wrap_gtk_tree_view_get_visible_rect(PyGObject *self) -{ - GdkRectangle visible_rect; - - gtk_tree_view_get_visible_rect(GTK_TREE_VIEW(self->obj), &visible_rect); - return pyg_boxed_new(GDK_TYPE_RECTANGLE, &visible_rect, TRUE, TRUE); -} -%% override gtk_tree_view_column_new kwargs static int _wrap_gtk_tree_view_column_new(PyGObject *self, PyObject*args, PyObject*kwargs) @@ -2240,98 +2230,6 @@ _wrap_gtk_tree_view_enable_model_drag_dest(PyGObject *self, PyObject *args, return Py_None; } %% -override gtk_tree_view_enable_model_drag_source kwargs -static PyObject * -_wrap_gtk_tree_view_enable_model_drag_source(PyGObject *self, PyObject *args, - PyObject *kwargs) -{ - static char *kwlist[] = { "start_button_mask", "targets", "actions", NULL }; - PyObject *py_sbmask, *py_targets, *py_actions; - GdkModifierType sbmask; - GtkTargetEntry *targets; - GdkDragAction actions; - gint n_targets, i; - - if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "OOO:GtkTreeView.enable_model_drag_source", - kwlist, - &py_sbmask, &py_targets, &py_actions)) - return NULL; - if (pyg_flags_get_value(GDK_TYPE_MODIFIER_TYPE, - py_sbmask, (gint *)&sbmask)) - return NULL; - if (pyg_flags_get_value(GDK_TYPE_DRAG_ACTION, - py_actions, (gint *)&actions)) - return NULL; - if (!PySequence_Check(py_targets)) { - PyErr_SetString(PyExc_TypeError, "targets must be a sequence"); - return NULL; - } - n_targets = PySequence_Length(py_targets); - targets = g_new(GtkTargetEntry, n_targets); - for (i = 0; i < n_targets; i++) { - PyObject *item = PySequence_GetItem(py_targets, i); - Py_DECREF(item); - if (!PyArg_ParseTuple(item, "zii", &targets[i].target, - &targets[i].flags, &targets[i].info)) { - PyErr_Clear(); - PyErr_SetString(PyExc_TypeError, - "list items should be of form (string,int,int)"); - g_free(targets); - return NULL; - } - } - gtk_tree_view_enable_model_drag_source(GTK_TREE_VIEW(self->obj), - sbmask, targets, n_targets, actions); - g_free(targets); - Py_INCREF(Py_None); - return Py_None; -} -%% -override gtk_tree_view_enable_model_drag_dest kwargs -static PyObject * -_wrap_gtk_tree_view_enable_model_drag_dest(PyGObject *self, PyObject *args, - PyObject *kwargs) -{ - static char *kwlist[] = { "targets", "actions", NULL }; - PyObject *py_targets, *py_actions; - GtkTargetEntry *targets; - GdkDragAction actions; - gint n_targets, i; - - if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "OO:GtkTreeView.enable_model_drag_dest", - kwlist, - &py_targets, &py_actions)) - return NULL; - if (pyg_flags_get_value(GDK_TYPE_DRAG_ACTION, - py_actions, (gint *)&actions)) - return NULL; - if (!PySequence_Check(py_targets)) { - PyErr_SetString(PyExc_TypeError, "targets must be a sequence"); - return NULL; - } - n_targets = PySequence_Length(py_targets); - targets = g_new(GtkTargetEntry, n_targets); - for (i = 0; i < n_targets; i++) { - PyObject *item = PySequence_GetItem(py_targets, i); - Py_DECREF(item); - if (!PyArg_ParseTuple(item, "zii", &targets[i].target, - &targets[i].flags, &targets[i].info)) { - PyErr_Clear(); - PyErr_SetString(PyExc_TypeError, - "list items should be of form (string,int,int)"); - g_free(targets); - return NULL; - } - } - gtk_tree_view_enable_model_drag_dest(GTK_TREE_VIEW(self->obj), - targets, n_targets, actions); - g_free(targets); - Py_INCREF(Py_None); - return Py_None; -} -%% override gtk_tree_view_get_drag_dest_row noargs static PyObject * _wrap_gtk_tree_view_get_drag_dest_row(PyGObject *self) |