[pitivi] timeline: Avoid using deprecated classes
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Avoid using deprecated classes
- Date: Fri, 11 Nov 2016 18:09:08 +0000 (UTC)
commit 246f456b699aa67fcb30e880a0e3528392fa7170
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Nov 9 14:35:56 2016 +0100
timeline: Avoid using deprecated classes
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D1463
pitivi/timeline/timeline.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 1956ac9..a733bcc 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1408,9 +1408,11 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
self.timeline = Timeline(self.app, left_size_group)
- vscrollbar = Gtk.VScrollbar(adjustment=self.timeline.vadj)
+ vscrollbar = Gtk.Scrollbar(orientation=Gtk.Orientation.VERTICAL,
+ adjustment=self.timeline.vadj)
vscrollbar.get_style_context().add_class("background")
- hscrollbar = Gtk.HScrollbar(adjustment=self.timeline.hadj)
+ hscrollbar = Gtk.Scrollbar(orientation=Gtk.Orientation.HORIZONTAL,
+ adjustment=self.timeline.hadj)
hscrollbar.get_style_context().add_class("background")
self.ruler = ScaleRuler(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]