[pygobject] Add Gtk.Arrow/Gtk.Window constructor override
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Add Gtk.Arrow/Gtk.Window constructor override
- Date: Wed, 14 Mar 2012 15:14:18 +0000 (UTC)
commit 174a61fb3149c07dab5cc35e64825922cdefcb95
Author: Johan Dahlin <johan gnome org>
Date: Tue Mar 13 17:10:13 2012 -0300
Add Gtk.Arrow/Gtk.Window constructor override
Adds argument that makes them compatible with PyGTK.
https://bugzilla.gnome.org/show_bug.cgi?id=672045
gi/overrides/Gtk.py | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 42d36ac..809f051 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1380,6 +1380,23 @@ class Paned(Gtk.Paned):
Paned = override(Paned)
__all__.append('Paned')
+
+class Arrow(Gtk.Arrow):
+ def __init__(self, arrow_type, shadow_type):
+ Gtk.Arrow.__init__(self, arrow_type=arrow_type,
+ shadow_type=shadow_type)
+
+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')
+
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]