Pass all parameters to Box.pack_start() and ...pack_end()
With PyGTK, several Box.pack_{start,end}() parameters had defaults [1,2].
With GTK3+pygi all values must be passed [3,4].
[1] http://developer.gnome.org/pygtk/stable/class-gtkbox.html#method-gtkbox--pack-start
[2] http://developer.gnome.org/pygtk/stable/class-gtkbox.html#method-gtkbox--pack-end
[3] http://developer.gnome.org/gtk/stable/GtkBox.html#gtk-box-pack-start
[4] http://developer.gnome.org/gtk/stable/GtkBox.html#gtk-box-pack-end
[assembled from several patches; replaced description]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
This commit is contained in:
committed by
Simon Schampijer
parent
89ef6304a1
commit
2f7f95f9af
@@ -233,14 +233,14 @@ class HTray(gtk.HBox):
|
||||
gobject.GObject.__init__(self, **kwargs)
|
||||
|
||||
scroll_left = _TrayScrollButton('go-left', _PREVIOUS_PAGE)
|
||||
self.pack_start(scroll_left, False)
|
||||
self.pack_start(scroll_left, False, False, 0)
|
||||
|
||||
self._viewport = _TrayViewport(gtk.ORIENTATION_HORIZONTAL)
|
||||
self.pack_start(self._viewport)
|
||||
self._viewport.show()
|
||||
|
||||
scroll_right = _TrayScrollButton('go-right', _NEXT_PAGE)
|
||||
self.pack_start(scroll_right, False)
|
||||
self.pack_start(scroll_right, False, False, 0)
|
||||
|
||||
scroll_left.viewport = self._viewport
|
||||
scroll_right.viewport = self._viewport
|
||||
@@ -319,14 +319,14 @@ class VTray(gtk.VBox):
|
||||
gobject.GObject.__init__(self, **kwargs)
|
||||
|
||||
scroll_up = _TrayScrollButton('go-up', _PREVIOUS_PAGE)
|
||||
self.pack_start(scroll_up, False)
|
||||
self.pack_start(scroll_up, False, False, 0)
|
||||
|
||||
self._viewport = _TrayViewport(gtk.ORIENTATION_VERTICAL)
|
||||
self.pack_start(self._viewport)
|
||||
self._viewport.show()
|
||||
|
||||
scroll_down = _TrayScrollButton('go-down', _NEXT_PAGE)
|
||||
self.pack_start(scroll_down, False)
|
||||
self.pack_start(scroll_down, False, False, 0)
|
||||
|
||||
scroll_up.viewport = self._viewport
|
||||
scroll_down.viewport = self._viewport
|
||||
|
||||
Reference in New Issue
Block a user