[pygobject] [gi] make sure Gtk.Button override passes all keywords to parent constructor
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] [gi] make sure Gtk.Button override passes all keywords to parent constructor
- Date: Mon, 6 Dec 2010 21:06:30 +0000 (UTC)
commit cdc9c26553bf47ea488676e7bdc5f8ab0a2c906b
Author: John (J5) Palmieri <johnp redhat com>
Date: Mon Dec 6 16:05:30 2010 -0500
[gi] make sure Gtk.Button override passes all keywords to parent constructor
gi/overrides/Gtk.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index f94f48e..a4b3982 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1032,7 +1032,7 @@ TreeSelection = override(TreeSelection)
__all__.append('TreeSelection')
class Button(Gtk.Button, Container):
- def __init__(self, label=None, stock=None, use_underline=False):
+ def __init__(self, label=None, stock=None, use_underline=False, **kwds):
if stock:
label = stock
use_stock = True
@@ -1040,7 +1040,7 @@ class Button(Gtk.Button, Container):
else:
use_stock = False
Gtk.Button.__init__(self, label=label, use_stock=use_stock,
- use_underline=use_underline)
+ use_underline=use_underline, **kwds)
Button = override(Button)
__all__.append('Button')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]