[pygobject/pygtk-compat: 5/10] GtkIconView: Add a default value for the model constructor parameter
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygtk-compat: 5/10] GtkIconView: Add a default value for the model constructor parameter
- Date: Fri, 16 Mar 2012 19:40:50 +0000 (UTC)
commit d1f560bfa2e26e3f09b47b715da28c7f9a547f2d
Author: Johan Dahlin <johan gnome org>
Date: Fri Mar 16 16:05:55 2012 -0300
GtkIconView: Add a default value for the model constructor parameter
gi/overrides/Gtk.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 49bedd9..710e52f 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -552,6 +552,9 @@ __all__.append('RecentChooserDialog')
class IconView(Gtk.IconView):
+ def __init__(self, model=None):
+ Gtk.IconView.__init__(self, model=model)
+
def get_item_at_pos(self, x, y):
success, path, cell = super(IconView, self).get_item_at_pos(x, y)
if success:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]