add info icon to MessageBox when type of message box is TYPE_INFO
[enigma2.git] / lib / python / Screens / MessageBox.py
index 632c9bc5dc9157e9519b9661701eeb6c07d9e8f9..7ed252c6ae3e0dd9f00519233713e0f5e2356fa1 100644 (file)
@@ -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) ]