[pygobject] Override Gtk.TreeView.get_visible_range to fix return
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Override Gtk.TreeView.get_visible_range to fix return
- Date: Mon, 5 Mar 2012 21:14:07 +0000 (UTC)
commit 8ca828825a2c47080055c5f986979aac8da9a93f
Author: Renà Stadler <rene stadler collabora co uk>
Date: Mon Mar 5 21:10:55 2012 +0100
Override Gtk.TreeView.get_visible_range to fix return
Just like IconView.
https://bugzilla.gnome.org/show_bug.cgi?id=671409
gi/overrides/Gtk.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 2b44282..42d36ac 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1219,6 +1219,11 @@ class TreeView(Gtk.TreeView, Container):
if success:
return (path, column, cell_x, cell_y,)
+ def get_visible_range(self):
+ success, start_path, end_path = super(TreeView, self).get_visible_range()
+ if success:
+ return (start_path, end_path,)
+
def get_dest_row_at_pos(self, drag_x, drag_y):
success, path, pos = super(TreeView, self).get_dest_row_at_pos(drag_x, drag_y)
if success:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]