[pygobject/pygtk-compat: 6/10] GtkToolButton: Add a default value for the stock_id constructor parameter
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygtk-compat: 6/10] GtkToolButton: Add a default value for the stock_id constructor parameter
- Date: Fri, 16 Mar 2012 19:40:55 +0000 (UTC)
commit d4743eee4a86d96acf3fc310bd746296a3460ae9
Author: Johan Dahlin <johan gnome org>
Date: Fri Mar 16 16:06:12 2012 -0300
GtkToolButton: Add a default value for the stock_id constructor parameter
gi/overrides/Gtk.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 710e52f..a419832 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -573,6 +573,16 @@ class IconView(Gtk.IconView):
IconView = override(IconView)
__all__.append('IconView')
+
+class ToolButton(Gtk.ToolButton):
+
+ def __init__(self, stock_id=None):
+ Gtk.ToolButton.__init__(self, stock_id=stock_id)
+
+ToolButton = override(ToolButton)
+__all__.append('ToolButton')
+
+
class IMContext(Gtk.IMContext):
def get_surrounding(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]