[pygobject] Override get_item_at_pos, get_visible_range, get_dest_item_at_pos of Gtk.IconView to not return succ
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Override get_item_at_pos, get_visible_range, get_dest_item_at_pos of Gtk.IconView to not return succ
- Date: Tue, 26 Oct 2010 13:49:45 +0000 (UTC)
commit b85b445f15421209c0b4adf676d7c8218d6437c5
Author: Sebastian Pölsterl <sebp k-d-w org>
Date: Sat Oct 23 14:15:24 2010 +0200
Override get_item_at_pos, get_visible_range, get_dest_item_at_pos of Gtk.IconView to not return success value
gi/overrides/Gtk.py | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index b117aac..40757d8 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -404,6 +404,25 @@ class RecentChooserDialog(Gtk.RecentChooserDialog, Dialog):
RecentChooserDialog = override(RecentChooserDialog)
__all__.append('RecentChooserDialog')
+class IconView(Gtk.IconView):
+
+ def get_item_at_pos(self, x, y):
+ success, path, cell = super(IconView, self).get_item_at_pos(x, y)
+ if success:
+ return (path, cell,)
+
+ def get_visible_range(self):
+ success, start_path, end_path = super(IconView, self).get_visible_range()
+ if success:
+ return (start_path, end_path,)
+
+ def get_dest_item_at_pos(self, drag_x, drag_y):
+ success, path, pos = super(IconView, self).get_dest_item_at_pos(drag_x, drag_y)
+ if success:
+ return path, pos
+
+IconView = override(IconView)
+__all__.append('IconView')
class TextBuffer(Gtk.TextBuffer):
def _get_or_create_tag_table(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]