From 199a2ec3b17bc59e6854db2a96ed223d21803ce7 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 15 Jan 2009 13:29:30 +0100 Subject: Add prerequisite checking before startup --- portato/gui/dialogs.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'portato/gui/dialogs.py') diff --git a/portato/gui/dialogs.py b/portato/gui/dialogs.py index f178d2b..edf34b7 100644 --- a/portato/gui/dialogs.py +++ b/portato/gui/dialogs.py @@ -3,7 +3,7 @@ # File: portato/gui/dialogs.py # This file is part of the Portato-Project, a graphical portage-frontend. # -# Copyright (C) 2006-2008 René 'Necoro' Neumann +# Copyright (C) 2006-2009 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. @@ -106,3 +106,10 @@ def file_chooser_dialog (title, parent): fc.destroy() return ret + +def prereq_error_dialog (e): + dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, _("A prerequisite for starting Portato was not matched.")) + dialog.format_secondary_text(e.message) + ret = dialog.run() + dialog.destroy() + return ret -- cgit v1.2.3-70-g09d2