summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornecoro <>2007-06-15 13:30:56 +0000
committernecoro <>2007-06-15 13:30:56 +0000
commite0edfdf4437466d385d7035b124cb1efa8b20fdb (patch)
tree1b3e8a447d80826425923df792e3c2d122e964fa
parent7a87171db82eb2bd4b46dc1077e04dfcba2c7393 (diff)
downloadportato-e0edfdf4437466d385d7035b124cb1efa8b20fdb.tar.gz
portato-e0edfdf4437466d385d7035b124cb1efa8b20fdb.tar.bz2
portato-e0edfdf4437466d385d7035b124cb1efa8b20fdb.zip
added ebuild viewer
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/__init__.py5
-rw-r--r--portato/gui/qt/__init__.py5
2 files changed, 6 insertions, 4 deletions
diff --git a/portato/gui/gtk/__init__.py b/portato/gui/gtk/__init__.py
index db9e6e1..17d6299 100644
--- a/portato/gui/gtk/__init__.py
+++ b/portato/gui/gtk/__init__.py
@@ -25,11 +25,12 @@ def show_ebuild (pkg):
def _show (pkg):
gtk.main_quit()
+ pkg = system.new_package(pkg)
hook = plugin.hook("open_ebuild", pkg, None)
- ew = hook(EbuildWindow)(None, system.new_package(pkg))
+ ew = hook(EbuildWindow)(None, pkg)
ew.window.connect("destroy", lambda *x: gtk.main_quit())
- ew.window.set_title("Portato Ebuild Viewer - %s" % pkg)
+ ew.window.set_title("Portato Ebuild Viewer - %s" % pkg.get_cpv())
gtk.main()
diff --git a/portato/gui/qt/__init__.py b/portato/gui/qt/__init__.py
index 4882a73..3f83aeb 100644
--- a/portato/gui/qt/__init__.py
+++ b/portato/gui/qt/__init__.py
@@ -26,10 +26,11 @@ def show_ebuild (pkg):
app = QApplication([])
def _show (pkg):
+ pkg = system.new_package(pkg)
hook = plugin.hook("open_ebuild", pkg, None)
- ew = hook(EbuildDialog)(None, system.new_package(pkg))
- ew.setWindowTitle("Portato Ebuild Viewer - %s" % pkg)
+ ew = hook(EbuildDialog)(None, pkg)
+ ew.setWindowTitle("Portato Ebuild Viewer - %s" % pkg.get_cpv())
ew.exec_()
s = SearchDialog(None, [x.get_cpv() for x in system.sort_package_list(system.find_all_packages(pkg, True))], _show)