[pygobject/pygtk-compat: 7/10] Gtk[HV]Scrollbar: Add a default value for the adjustment constructor parameter
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygtk-compat: 7/10] Gtk[HV]Scrollbar: Add a default value for the adjustment constructor parameter
- Date: Fri, 16 Mar 2012 19:41:00 +0000 (UTC)
commit 3f4c92815308e4bc440c557f0d26663b56011a79
Author: Johan Dahlin <johan gnome org>
Date: Fri Mar 16 16:06:37 2012 -0300
Gtk[HV]Scrollbar: Add a default value for the adjustment constructor parameter
gi/overrides/Gtk.py | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index a419832..cd65d2c 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1408,6 +1408,21 @@ class ScrolledWindow(Gtk.ScrolledWindow):
ScrolledWindow = override(ScrolledWindow)
__all__.append('ScrolledWindow')
+
+class HScrollbar(Gtk.HScrollbar):
+ def __init__(self, adjustment=None):
+ Gtk.HScrollbar.__init__(self, adjustment=adjustment)
+
+HScrollbar = override(HScrollbar)
+__all__.append('HScrollbar')
+
+class VScrollbar(Gtk.VScrollbar):
+ def __init__(self, adjustment=None):
+ Gtk.VScrollbar.__init__(self, adjustment=adjustment)
+
+VScrollbar = override(VScrollbar)
+__all__.append('VScrollbar')
+
class Paned(Gtk.Paned):
def pack1(self, child, resize=False, shrink=True):
super(Paned, self).pack1(child, resize, shrink)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]