summaryrefslogtreecommitdiff
path: root/gi/overrides/Gtk.py
diff options
context:
space:
mode:
authorSimon Feltman <s.feltman@gmail.com>2012-08-09 03:33:06 -0700
committerPaolo Borelli <pborelli@gnome.org>2012-08-15 13:23:27 +0200
commit9f027daa5737107b5959964b699c0089aec8ab1e (patch)
tree76e9622f692bff0f2b236de71835d297cdb24cfa /gi/overrides/Gtk.py
parentc8424c2bb19356679e250e73542682dd5f4c74a5 (diff)
downloadpygobject-9f027daa5737107b5959964b699c0089aec8ab1e.tar.gz
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
Diffstat (limited to 'gi/overrides/Gtk.py')
-rw-r--r--gi/overrides/Gtk.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 8418ca49..231291df 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)