summaryrefslogtreecommitdiff
path: root/portato/gui/queue.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-05-15 18:00:26 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-05-15 18:00:26 +0200
commitd91ed5c9183c2c76545eeaee7d61c7326e262950 (patch)
tree0a8e553761be5dafc13c91268a15b9096659666c /portato/gui/queue.py
parent225f0d2297584adbdea11466486d06b909ec6ec3 (diff)
downloadportato-d91ed5c9183c2c76545eeaee7d61c7326e262950.tar.gz
portato-d91ed5c9183c2c76545eeaee7d61c7326e262950.tar.bz2
portato-d91ed5c9183c2c76545eeaee7d61c7326e262950.zip
Get rid of wrapper.py and GtkConsole
Diffstat (limited to '')
-rw-r--r--portato/gui/queue.py7
1 files changed, 3 insertions, 4 deletions
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