summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/__init__.py
diff options
context:
space:
mode:
authorNecoro <>2007-11-13 22:18:41 +0000
committerNecoro <>2007-11-13 22:18:41 +0000
commit7019c5dfa800871a431d9ee254ad09b95274bc4c (patch)
tree423073f174a9af9cb325b9060c0b09b0c28bb08e /portato/gui/gtk/__init__.py
parent69122abc3e2156e3b3a9a82f4ab5b0b68f694aad (diff)
downloadportato-7019c5dfa800871a431d9ee254ad09b95274bc4c.tar.gz
portato-7019c5dfa800871a431d9ee254ad09b95274bc4c.tar.bz2
portato-7019c5dfa800871a431d9ee254ad09b95274bc4c.zip
r546@Devoty: necoro | 2007-11-13 19:08:28 +0100
Added log tab r547@Devoty: necoro | 2007-11-13 23:10:39 +0100 added ebuild and changelog tab r548@Devoty: necoro | 2007-11-13 23:14:17 +0100 removed EbuildWindow and '--ebuild' option r549@Devoty: necoro | 2007-11-13 23:17:51 +0100 small change
Diffstat (limited to 'portato/gui/gtk/__init__.py')
-rw-r--r--portato/gui/gtk/__init__.py29
1 files changed, 1 insertions, 28 deletions
diff --git a/portato/gui/gtk/__init__.py b/portato/gui/gtk/__init__.py
index 14424b9..9a5338b 100644
--- a/portato/gui/gtk/__init__.py
+++ b/portato/gui/gtk/__init__.py
@@ -3,7 +3,7 @@
# File: portato/gui/gtk/__init__.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
-# Copyright (C) 2006 René 'Necoro' Neumann
+# Copyright (C) 2006-2007 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.
@@ -31,30 +31,3 @@ def run ():
pass
get_listener().close()
-
-def show_ebuild (pkg):
- import gtk
- from ... import plugin
- from ...backend import system
- from .windows import SearchWindow, EbuildWindow
-
- plugin.load_plugins("gtk")
- register_ex_handler()
-
- def _show (pkg):
- gtk.main_quit()
-
- pkg = system.new_package(pkg)
- hook = plugin.hook("open_ebuild", pkg, None)
-
- ew = hook(EbuildWindow)(None, pkg)
- ew.window.connect("destroy", lambda *x: gtk.main_quit())
- ew.window.set_title("Portato Ebuild Viewer - %s" % pkg.get_cpv())
-
- gtk.main()
-
- s = SearchWindow(None, [x.get_cpv() for x in system.sort_package_list(system.find_all_packages(pkg, True))], _show)
- s.window.set_title("Portato Ebuild Viewer - Search")
- s.window.connect("destroy", lambda *x: gtk.main_quit())
-
- gtk.main()