[pitivi] prefs: Make _fillContents a private method.
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] prefs: Make _fillContents a private method.
- Date: Wed, 8 Jan 2014 18:39:49 +0000 (UTC)
commit 0d76c0303f673413854f27d01a889d203a49bbc9
Author: Mathieu Duponchelle <mduponchelle1 gmail com>
Date: Thu Dec 26 16:22:00 2013 +0100
prefs: Make _fillContents a private method.
Also set attribute "sections" in __init__
pitivi/dialogs/prefs.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/dialogs/prefs.py b/pitivi/dialogs/prefs.py
index 0c6b582..eaff1c8 100644
--- a/pitivi/dialogs/prefs.py
+++ b/pitivi/dialogs/prefs.py
@@ -71,7 +71,8 @@ class PreferencesDialog(object):
self.factory_settings = builder.get_object("resetButton")
self.restart_warning = builder.get_object("restartWarning")
- self._fillContents()
+ self.sections = {}
+ self.__fillContents()
req = self.contents.size_request()
min_width = req.width
min_height = req.height
@@ -250,8 +251,7 @@ class PreferencesDialog(object):
ptvWidgets.FontWidget)
## Implementation
- def _fillContents(self):
- self.sections = {}
+ def __fillContents(self):
for section in sorted(self.prefs):
options = self.prefs[section]
self.model.append((_(section), section))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]