diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-11-04 22:30:26 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-11-04 22:30:26 +0100 |
commit | 83189aadfead6ccdf42145abd8742ddfdb2ef61c (patch) | |
tree | ba8a5450b870a7fa30ecb6039802b605593760e3 | |
parent | d9bc58cb4c9b155b920c43ae9bb46d4a72dfa1e2 (diff) |
Add icon to message boxes
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index 4706955e..9ff3c5a4 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -151,6 +151,13 @@ create_msg_dialog (gchar *title, gchar *message) dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, message); gtk_window_set_title (GTK_WINDOW (dialog), title); + +/* On Win32 we automatically have the icon. If we try to load it explicitly, it will look ugly for some reason. */ +#ifndef WIN32 + pixmaps_init (); + gtk_window_set_icon (GTK_WINDOW (dialog), pix_hexchat); +#endif + gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } |