From d91ed5c9183c2c76545eeaee7d61c7326e262950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 15 May 2009 18:00:26 +0200 Subject: Get rid of wrapper.py and GtkConsole --- portato/gui/queue.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'portato/gui/queue.py') diff --git a/portato/gui/queue.py b/portato/gui/queue.py index 5261fc9..e19f8cb 100644 --- a/portato/gui/queue.py +++ b/portato/gui/queue.py @@ -27,7 +27,7 @@ from ..odict import OrderedDict from .updater import Updater # the wrapper -from .wrapper import GtkConsole, GtkTree +from .utils import GtkTree class EmergeQueue: """This class manages the emerge queue.""" @@ -38,7 +38,7 @@ class EmergeQueue: @param tree: Tree to append all the items to. @type tree: GtkTree @param console: Output is shown here. - @type console: GtkConsole + @type console: vte.Terminal @param db: A database instance. @type db: Database @param title_update: A function, which will be called whenever there is a title update. @@ -64,7 +64,6 @@ class EmergeQueue: if self.tree and not isinstance(self.tree, GtkTree): raise TypeError, "tree passed is not a GtkTree-object" self.console = console - if self.console and not isinstance(self.console, GtkConsole): raise TypeError, "console passed is not a GtkConsole-object" self.db = db self.title_update = title_update @@ -350,7 +349,7 @@ class EmergeQueue: # open tty if self.console: - self.console.reset() + self.console.reset(True, True) def pre (): os.setsid() # new session -- cgit v1.2.3