[pygobject] Add a default argument to TreeModelFilter.set_visible_func()
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Add a default argument to TreeModelFilter.set_visible_func()
- Date: Fri, 16 Mar 2012 19:37:34 +0000 (UTC)
commit a7b08cb75541612c78d123b1d968be7874e3c481
Author: Johan Dahlin <johan gnome org>
Date: Wed Mar 14 13:32:31 2012 -0300
Add a default argument to TreeModelFilter.set_visible_func()
https://bugzilla.gnome.org/show_bug.cgi?id=672081
gi/overrides/Gtk.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 81d2e69..43ca2ea 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1401,6 +1401,20 @@ Arrow = override(Arrow)
__all__.append('Arrow')
+class Window(Gtk.Window):
+ def __init__(self, type=Gtk.WindowType.TOPLEVEL):
+ Gtk.Window.__init__(self, type=type)
+
+Window = override(Window)
+__all__.append('Window')
+
+class TreeModelFilter(Gtk.TreeModelFilter):
+ def set_visible_func(self, func, data=None):
+ super(TreeModelFilter, self).set_visible_func(func, data)
+
+TreeModelFilter = override(TreeModelFilter)
+__all__.append('TreeModelFilter')
+
if Gtk._version != '2.0':
class Menu(Gtk.Menu):
def popup(self, parent_menu_shell, parent_menu_item, func, data, button, activate_time):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]