diff options
author | John Finlay <finlay@src.gnome.org> | 2005-09-07 04:33:52 +0000 |
---|---|---|
committer | John Finlay <finlay@src.gnome.org> | 2005-09-07 04:33:52 +0000 |
commit | 843f2446ce187c510ca920aedb00b9fbd9a70e47 (patch) | |
tree | 71de236ae434e8d43dfd38cc7ba3f649d8333965 /gtk/gtktreeview.override | |
parent | 9a758999bbf81f36eda615c224e8d46fb9307238 (diff) | |
download | pygtk-843f2446ce187c510ca920aedb00b9fbd9a70e47.tar.gz |
Add.
* gtk/gdk.defs (set_urgency_hint): Add.
* gtk/gtktreeview.override (_wrap_gtk_tree_view_get_visible_range):
Add.
* gtk/gtk.defs (set_drag_dest_item): Allow path to be None.
(get_visible_range): Add.
* gtk/gtk.defs (set_cursor): Allow cell to be None
* gtk/gtkwidget.override (_wrap_gtk_drag_source_set_icon_name1): Add.
* gtk/gtk.defs (gtk_drag_source_set_icon_name): Add as a widget method
and deprecate function gtk.drag_source_set_icon_name.
* gtk/gdk.defs (set_icon_name): Add.
* gtk/gtktextview.override (_wrap_gtk_text_view_get_iter_at_position):
Add.
* gtk/gtk.override (_wrap_gtk_clipboard_request_image): Add.
* gtk/gtk.defs (gtk_alternative_dialog_button_order)
(gtk_clipboard_request_image, gtk_clipboard_wait_for_image)
(gtk_clipboard_set_image, gtk_clipboard_wait_is_image_available)
(drag_source_add_iamge_targets, drag_source_add_uri_targets):
Add defs.
Diffstat (limited to 'gtk/gtktreeview.override')
-rw-r--r-- | gtk/gtktreeview.override | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk/gtktreeview.override b/gtk/gtktreeview.override index 3082e3e5..19a4fa28 100644 --- a/gtk/gtktreeview.override +++ b/gtk/gtktreeview.override @@ -3141,3 +3141,24 @@ _wrap_gtk_tree_view_set_row_separator_func(PyGObject *self, PyObject *args, Py_INCREF(Py_None); return Py_None; } +%% +override gtk_tree_view_get_visible_range noargs +static PyObject * +_wrap_gtk_tree_view_get_visible_range(PyGObject *self) +{ + GtkTreePath *start_path, *end_path; + gboolean r; + + r = gtk_tree_view_get_visible_range(GTK_TREE_VIEW(self->obj), + &start_path, &end_path); + if (r) { + PyObject *py_start_path = pygtk_tree_path_to_pyobject(start_path); + PyObject *py_end_path = pygtk_tree_path_to_pyobject(end_path); + gtk_tree_path_free(start_path); + gtk_tree_path_free(end_path); + return Py_BuildValue("(NN)", py_start_path, py_end_path); + } + + Py_INCREF(Py_None); + return Py_None; +} |