summaryrefslogtreecommitdiff
path: root/portato/gui/gtk
diff options
context:
space:
mode:
authorNecoro <>2008-01-18 19:24:38 +0000
committerNecoro <>2008-01-18 19:24:38 +0000
commite49c33d6114ddc8051c349aa325872bd7840289b (patch)
treee02628a2e9bcbb9011a3390962819c8c6ecb1e51 /portato/gui/gtk
parent34cd02955f69251e9484803d8ee4912b23e1e99b (diff)
downloadportato-e49c33d6114ddc8051c349aa325872bd7840289b.tar.gz
portato-e49c33d6114ddc8051c349aa325872bd7840289b.tar.bz2
portato-e49c33d6114ddc8051c349aa325872bd7840289b.zip
r661@Devoty: necoro | 2008-01-18 14:16:59 +0100
First support for interactive emerges r662@Devoty: necoro | 2008-01-18 20:22:58 +0100 Now finished interactive emerges
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/windows.py9
-rw-r--r--portato/gui/gtk/wrapper.py5
2 files changed, 10 insertions, 4 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index d8366a0..4d25312 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -3,7 +3,7 @@
# File: portato/gui/gtk/windows.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
-# Copyright (C) 2006-2007 René 'Necoro' Neumann
+# Copyright (C) 2006-2008 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
@@ -458,6 +458,7 @@ class PackageTable:
self.nameLabel = self.tree.get_widget("nameLabel")
self.descLabel = self.tree.get_widget("descLabel")
self.overlayLabel = self.tree.get_widget("overlayLabel")
+ self.licenseLabel = self.tree.get_widget("licenseLabel")
self.overlayLL = self.tree.get_widget("overlayLabelLabel")
self.linkBox = self.tree.get_widget("linkBox")
self.notInSysLabel = self.tree.get_widget("notInSysLabel")
@@ -532,7 +533,7 @@ class PackageTable:
self.descLabel.set_label(desc)
# overlay
- if self.actual_package().is_overlay():
+ if pkg.is_overlay():
self.overlayLabel.set_label(pkg.get_overlay_path())
self.overlayLabel.show()
self.overlayLL.show()
@@ -540,6 +541,9 @@ class PackageTable:
self.overlayLabel.hide()
self.overlayLL.hide()
+ # license
+ self.licenseLabel.set_label(pkg.get_package_settings("LICENSE"))
+
# link
for c in self.linkBox.get_children():
self.linkBox.remove(c)
@@ -1016,6 +1020,7 @@ class MainWindow (Window):
# notebooks
self.sysNotebook = self.tree.get_widget("systemNotebook")
self.pkgNotebook = self.tree.get_widget("packageNotebook")
+ self.set_notebook_tabpos(map(PreferenceWindow.tabpos.get, map(int, (self.cfg.get("packageTabPos", "GTK"), self.cfg.get("systemTabPos", "GTK")))))
self.window.show_all()
# the hidden stuff
diff --git a/portato/gui/gtk/wrapper.py b/portato/gui/gtk/wrapper.py
index cadec6a..e601f5d 100644
--- a/portato/gui/gtk/wrapper.py
+++ b/portato/gui/gtk/wrapper.py
@@ -3,7 +3,7 @@
# File: portato/gui/gtk/wrapper.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
-# Copyright (C) 2006 René 'Necoro' Neumann
+# Copyright (C) 2006-2008 René 'Necoro' Neumann
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
@@ -12,9 +12,10 @@
from __future__ import absolute_import
+import vte
from gettext import lgettext as _
from ..wrapper import Tree, Console
-import vte
+from ...helper import debug
class GtkTree (Tree):
"""The implementation of the abstract tree."""