Mercurial > pidgin
changeset 15733:80fe830ab842
Set the URGENT hint for the mail window when new mails come in and the window is open.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 26 Feb 2007 06:27:51 +0000 |
parents | 326aab92ba64 |
children | 427ca6a0aa87 |
files | pidgin/gtknotify.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtknotify.c Mon Feb 26 05:46:45 2007 +0000 +++ b/pidgin/gtknotify.c Mon Feb 26 06:27:51 2007 +0000 @@ -323,6 +323,8 @@ GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); gtk_window_set_role(GTK_WINDOW(dialog), "new_mail_detailed"); + g_signal_connect(G_OBJECT(dialog), "focus-in-event", + G_CALLBACK(pidgin_set_urgent), NULL); gtk_dialog_add_button(GTK_DIALOG(dialog), _("Open All Messages"), GTK_RESPONSE_ACCEPT); @@ -521,7 +523,8 @@ g_free(label_text); if (pixbuf) g_object_unref(pixbuf); - } + } else if (!GTK_WIDGET_HAS_FOCUS(dialog)) + pidgin_set_urgent(GTK_WINDOW(dialog), TRUE); return NULL; }