[pygobject] Make TreeSelection.get_selected_rows compatible with PyGtk



commit a5e806ad8a8b279402ff7adb1c1cdc04f9f3da76
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Nov 21 21:57:40 2010 +0100

    Make TreeSelection.get_selected_rows compatible with PyGtk
    
    https://bugzilla.gnome.org/show_bug.cgi?id=635464

 gi/overrides/Gtk.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index b3ac2c9..ce353b3 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -937,6 +937,12 @@ class TreeSelection(Gtk.TreeSelection):
         else:
             return (model, None)
 
+    # for compatibility with PyGtk
+    def get_selected_rows(self):
+        rows, model = super(TreeSelection, self).get_selected_rows()
+        return (model, rows)
+
+
 TreeSelection = override(TreeSelection)
 __all__.append('TreeSelection')
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]