From 7019c5dfa800871a431d9ee254ad09b95274bc4c Mon Sep 17 00:00:00 2001 From: Necoro <> Date: Tue, 13 Nov 2007 22:18:41 +0000 Subject: 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 --- portato/gui/gtk/__init__.py | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'portato/gui/gtk/__init__.py') 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() -- cgit v1.2.3-54-g00ecf