From a902e9ddfd12aa1acdb346258348f993792b4401 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Wed, 22 Feb 2006 20:59:13 +0000 Subject: [PATCH] add info icon to MessageBox when type of message box is TYPE_INFO --- data/skin.xml | 1 + lib/python/Screens/MessageBox.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/data/skin.xml b/data/skin.xml index fcdff13b..9375f97b 100644 --- a/data/skin.xml +++ b/data/skin.xml @@ -360,6 +360,7 @@ + # this should be factored out into some helper code, but currently demonstrates applets. diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py index 632c9bc5..7ed252c6 100644 --- a/lib/python/Screens/MessageBox.py +++ b/lib/python/Screens/MessageBox.py @@ -20,13 +20,16 @@ class MessageBox(Screen): self["ErrorPixmap"] = Pixmap() self["QuestionPixmap"] = Pixmap() + self["InfoPixmap"] = Pixmap() self.list = [] if type != self.TYPE_ERROR: self.onShown.append(self["ErrorPixmap"].hideWidget) elif type != self.TYPE_YESNO: self.onShown.append(self["QuestionPixmap"].hideWidget) - + elif type != self.TYPE_INFO: + self.onShown.append(self["InfoPixmap"].hideWidget) + if type == self.TYPE_YESNO: self.list = [ (_("yes"), 0), (_("no"), 1) ] -- 2.30.2