# HG changeset patch # User Sadrul Habib Chowdhury # Date 1172471648 0 # Node ID 427ca6a0aa877b377026292045f54db8efc1fc33 # Parent 80fe830ab84228032be7006776f9cae1f9087afa Fix the last change. diff -r 80fe830ab842 -r 427ca6a0aa87 pidgin/gtknotify.c --- a/pidgin/gtknotify.c Mon Feb 26 06:27:51 2007 +0000 +++ b/pidgin/gtknotify.c Mon Feb 26 06:34:08 2007 +0000 @@ -307,6 +307,13 @@ (url == NULL ? NULL : &url)); } +static int +mail_window_focus_cb(GtkWidget *widget, GdkEventFocus *focus, gpointer null) +{ + pidgin_set_urgent(GTK_WINDOW(widget), FALSE); + return 0; +} + static GtkWidget * pidgin_get_mail_dialog() { @@ -324,7 +331,7 @@ 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); + G_CALLBACK(mail_window_focus_cb), NULL); gtk_dialog_add_button(GTK_DIALOG(dialog), _("Open All Messages"), GTK_RESPONSE_ACCEPT);