[pygobject] Gtk overrides: Add TreeModelSort.__init__(self, model)
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Gtk overrides: Add TreeModelSort.__init__(self, model)
- Date: Wed, 15 Aug 2012 11:29:40 +0000 (UTC)
commit 9f027daa5737107b5959964b699c0089aec8ab1e
Author: Simon Feltman <s feltman gmail com>
Date: Thu Aug 9 03:33:06 2012 -0700
Gtk overrides: Add TreeModelSort.__init__(self, model)
This adds "model" as a required argument to TreeModelSort
instead of it being a hidden keyword argument. This is needed
because the model property is set to construct only and the
default value of None/NULL makes the object useless anyhow.
https://bugzilla.gnome.org/show_bug.cgi?id=681477
gi/overrides/Gtk.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 8418ca4..231291d 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -990,6 +990,14 @@ TreeSortable = override(TreeSortable)
__all__.append('TreeSortable')
+class TreeModelSort(Gtk.TreeModelSort):
+ def __init__(self, model, **kwds):
+ Gtk.TreeModelSort.__init__(self, model=model, **kwds)
+
+TreeModelSort = override(TreeModelSort)
+__all__.append('TreeModelSort')
+
+
class ListStore(Gtk.ListStore, TreeModel, TreeSortable):
def __init__(self, *column_types):
Gtk.ListStore.__init__(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]