# HG changeset patch # User Sadrul Habib Chowdhury # Date 1172471271 0 # Node ID 80fe830ab84228032be7006776f9cae1f9087afa # Parent 326aab92ba6450a9b58f5e606e9e9970f6d8167c Set the URGENT hint for the mail window when new mails come in and the window is open. diff -r 326aab92ba64 -r 80fe830ab842 pidgin/gtknotify.c --- 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; }