[pitivi] clipproperties: Remove the settings fields
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] clipproperties: Remove the settings fields
- Date: Thu, 17 Dec 2015 10:01:41 +0000 (UTC)
commit 36772a73def8776f4a5de6e167bcf2de0d533b7f
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Oct 30 12:00:29 2015 +0100
clipproperties: Remove the settings fields
The settings object does not change, so it's preferred if it's accessed
through the app instance. Especially since it's not used a lot.
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D539
pitivi/clipproperties.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index 94ac235..7766af0 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -62,7 +62,6 @@ class ClipProperties(Gtk.Box, Loggable):
Gtk.Box.__init__(self)
Loggable.__init__(self)
self.app = app
- self.settings = app.settings
self._project = None
self.set_orientation(Gtk.Orientation.VERTICAL)
@@ -126,7 +125,6 @@ class EffectProperties(Gtk.Expander, Loggable):
# Global variables related to effects
self.app = app
- self.settings = app.settings
self.selected_effects = []
self.clips = []
@@ -247,7 +245,7 @@ class EffectProperties(Gtk.Expander, Loggable):
def _vcontentNotifyCb(self, paned, gparamspec):
if gparamspec and gparamspec.name == 'position':
self._config_ui_h_pos = self._vcontent.get_position()
- self.settings.effectVPanedPosition = self._config_ui_h_pos
+ self.app.settings.effectVPanedPosition = self._config_ui_h_pos
@property
def timeline(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]