changeset 15734:427ca6a0aa87

Fix the last change.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 26 Feb 2007 06:34:08 +0000
parents 80fe830ab842
children cf58d8ec3b0d
files pidgin/gtknotify.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);