[pitivi] viewer: Do not let Gtk a chance to set our size to video 'natural' size
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] viewer: Do not let Gtk a chance to set our size to video 'natural' size
- Date: Mon, 21 Sep 2015 11:00:34 +0000 (UTC)
commit 791c878a81b3fba4125e6222103195acc2f966bf
Author: Thibault Saunier <tsaunier gnome org>
Date: Mon Sep 21 12:59:04 2015 +0200
viewer: Do not let Gtk a chance to set our size to video 'natural' size
Otherwise in the file chooser previewer we will not respect the zoom
ratio asked by the user.
Fixes T3336
pitivi/viewer.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 6d04286..1448ebf 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -634,6 +634,16 @@ class ViewerWidget(Gtk.AspectFrame, Loggable):
# so we need to flush the pipeline
self.seeker.flush()
+ def do_get_preferred_width(self):
+ # Do not let a chance for Gtk to choose video natural size
+ # as we want to have full control
+ return -1, -1
+
+ def do_get_preferred_height(self):
+ # Do not let a chance for Gtk to choose video natural size
+ # as we want to have full control
+ return -1, -1
+
class PlayPauseButton(Gtk.Button, Loggable):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]