[pitivi] previewers: Force waveforms redraw when height changes
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] previewers: Force waveforms redraw when height changes
- Date: Fri, 11 Nov 2016 18:09:02 +0000 (UTC)
commit 223a4c12ce18ddfe76fe5df296dbb726195c334a
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Nov 9 12:34:19 2016 +0100
previewers: Force waveforms redraw when height changes
Fixes https://phabricator.freedesktop.org/T7612
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D1462
pitivi/timeline/previewers.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index 5212044..c1975ef 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -964,9 +964,13 @@ class AudioPreviewer(Previewer, Zoomable, Loggable):
self._force_redraw = True
- self.ges_elem.connect("notify::in-point", self._inpointChangedCb)
+ self.ges_elem.connect("notify::in-point", self._inpoint_changed_cb)
+ self.connect("notify::height-request", self._height_changed_cb)
+
+ def _inpoint_changed_cb(self, unused_b_element, unused_value):
+ self._force_redraw = True
- def _inpointChangedCb(self, unused_b_element, unused_value):
+ def _height_changed_cb(self, unused_widget, unused_param_spec):
self._force_redraw = True
def startLevelsDiscoveryWhenIdle(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]