From 0541f1abd3f4317e0272934367fe2d84df246cd9 Mon Sep 17 00:00:00 2001 From: Necoro <> Date: Wed, 3 Oct 2007 17:59:27 +0000 Subject: small fixes; removed old icon --- portato/backend/portage/system.py | 2 +- portato/gui/gtk/windows.py | 4 ++++ portato/gui/gui_helper.py | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'portato') diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 5916a9f..93c5ea0 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -19,7 +19,7 @@ import portage from .package import PortagePackage from .settings import PortageSettings from ..system_interface import SystemInterface -from ...helper import debug, info, unique_array +from ...helper import debug, info, warning, unique_array class PortageSystem (SystemInterface): """This class provides access to the portage-system.""" diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index 7234490..dc3dc35 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -391,6 +391,10 @@ class EbuildWindow (AbstractDialog): else: man = gtksourceview2.LanguageManager() language = man.get_language("ebuild") + + if language is None: + info(_("No ebuild language file installed. Falling back to shell.")) + language = man.get_language("sh") # set buffer and view self.buf = gtksourceview2.Buffer() diff --git a/portato/gui/gui_helper.py b/portato/gui/gui_helper.py index d1c53d0..fb531d7 100644 --- a/portato/gui/gui_helper.py +++ b/portato/gui/gui_helper.py @@ -518,7 +518,6 @@ class EmergeQueue: if self.title_update: self.title_update(None) - if self.process is None: # someone resetted this self.threadQueue.next() return -- cgit v1.2.3-54-g00ecf