# HG changeset patch # User Sadrul Habib Chowdhury # Date 1211670200 0 # Node ID 41171963c98660f601329798c76a2e0a5f2bb353 # Parent 4d8dced30fa2d7a9f8aff8970a2bb9ca603d7ef7 Highlight the mail window for new mails. diff -r 4d8dced30fa2 -r 41171963c986 finch/gntnotify.c --- a/finch/gntnotify.c Sat May 24 22:54:06 2008 +0000 +++ b/finch/gntnotify.c Sat May 24 23:03:20 2008 +0000 @@ -208,8 +208,10 @@ else { char *to; + gboolean newwin = (emaildialog.window == NULL); - setup_email_dialog(); + if (newwin) + setup_email_dialog(); to = g_strdup_printf("%s (%s)", tos ? *tos : purple_account_get_username(account), purple_account_get_protocol_name(account)); @@ -219,7 +221,10 @@ *subjects), NULL, NULL); g_free(to); - gnt_widget_show(emaildialog.window); + if (newwin) + gnt_widget_show(emaildialog.window); + else + gnt_window_present(emaildialog.window); return NULL; }