diff options
author | Mike Fulbright <msf@redhat.com> | 2002-06-27 19:24:54 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-06-27 19:24:54 +0000 |
commit | 0319d137a09c52355cb94e0f90f8390d7af1b6fa (patch) | |
tree | 918592738d2484c3554fb8495dd9738d6f3cab41 /gui.py | |
parent | cf3c598198d101942b40599c7fd5f735a0795306 (diff) | |
download | anaconda-0319d137a09c52355cb94e0f90f8390d7af1b6fa.tar.gz anaconda-0319d137a09c52355cb94e0f90f8390d7af1b6fa.tar.xz anaconda-0319d137a09c52355cb94e0f90f8390d7af1b6fa.zip |
support more custom icons
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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) |