[pitivi: 30/41] Show the list of missing packages in the dependency manager
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 30/41] Show the list of missing packages in the dependency manager
- Date: Sat, 13 Aug 2011 12:08:45 +0000 (UTC)
commit 9e28177ab5e760c78153eaa6ecbca9f7bf43d1e3
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Fri Aug 12 13:42:36 2011 +0200
Show the list of missing packages in the dependency manager
pitivi/check.py | 5 -----
pitivi/ui/depsmanager.py | 11 +++++++++--
2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/check.py b/pitivi/check.py
index c129fe7..6adb51d 100644
--- a/pitivi/check.py
+++ b/pitivi/check.py
@@ -183,8 +183,3 @@ def initial_checks():
#if not gst.registry_get_default().find_plugin("x264"):
# soft_deps["GStreamer ugly plugins"] = _('Additional good quality GStreamer plugins whose license is not LGPL or with licensing issues')
return None
-
-
-def get_softdeps():
- """Returns the soft_deps dictionary."""
- return soft_deps
diff --git a/pitivi/ui/depsmanager.py b/pitivi/ui/depsmanager.py
index 652d929..c92ed83 100644
--- a/pitivi/ui/depsmanager.py
+++ b/pitivi/ui/depsmanager.py
@@ -25,7 +25,7 @@ import os
from gettext import gettext as _
from pitivi.configure import get_ui_dir
-from pitivi.check import get_softdeps
+from pitivi.check import soft_deps
class DepsManager(object):
"""Display a dialog listing missing soft dependencies.
@@ -46,13 +46,20 @@ class DepsManager(object):
def _onInstallButtonClickedCb(self, unused_button): # TODO: do stuff here
self.hide()
- soft_deps = get_softdeps()
for foo in soft_deps:
print foo
print "\t", soft_deps[foo], "\n"
+ def _setDepsLabel(self):
+ """Set the contents of the label containing the list of missing dependencies"""
+ label_contents = ""
+ for dep in soft_deps:
+ label_contents += u"â " + dep + " (" + soft_deps[dep] + ")\n"
+ self.builder.get_object("pkg_list").set_text(label_contents)
+
def show(self):
# self.window.set_transient_for(self.app.gui)
+ self._setDepsLabel()
self.window.show()
self.window.grab_focus()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]