summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-27 19:24:54 +0000
committerMike Fulbright <msf@redhat.com>2002-06-27 19:24:54 +0000
commit0319d137a09c52355cb94e0f90f8390d7af1b6fa (patch)
tree918592738d2484c3554fb8495dd9738d6f3cab41 /gui.py
parentcf3c598198d101942b40599c7fd5f735a0795306 (diff)
downloadanaconda-0319d137a09c52355cb94e0f90f8390d7af1b6fa.tar.gz
anaconda-0319d137a09c52355cb94e0f90f8390d7af1b6fa.tar.xz
anaconda-0319d137a09c52355cb94e0f90f8390d7af1b6fa.zip
support more custom icons
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/gui.py b/gui.py
index b2f136838..ab8136240 100755
--- a/gui.py
+++ b/gui.py
@@ -312,13 +312,16 @@ class MessageWindow:
elif type == 'custom':
docustom = 1
buttons = gtk.BUTTONS_NONE
-
- if custom_icon == "warning":
- style = gtk.MESSAGE_WARNING
- elif custom_icon == "question":
- style = gtk.MESSAGE_QUESTION
- else:
- style = gtk.MESSAGE_QUESTION
+ style = gtk.MESSAGE_QUESTION
+
+ if custom_icon == "warning":
+ style = gtk.MESSAGE_WARNING
+ elif custom_icon == "question":
+ style = gtk.MESSAGE_QUESTION
+ elif custom_icon == "error":
+ style = gtk.MESSAGE_ERROR
+ elif custom_icon == "info":
+ style = gtk.MESSAGE_INFO
dialog = gtk.MessageDialog(mainWindow, 0, style, buttons, text)