pidgin/gtkconv.c

changeset 19392
922122966465
parent 19377
468ee2c5cb1e
child 19402
8f302e7431ba
--- a/pidgin/gtkconv.c	Tue Aug 14 21:33:53 2007 +0000
+++ b/pidgin/gtkconv.c	Tue Aug 14 22:13:35 2007 +0000
@@ -7618,13 +7618,14 @@
  * has looked at it so we know there are no longer unseen
  * messages.
  */
-static gint
+static gboolean
 focus_win_cb(GtkWidget *w, GdkEventFocus *e, gpointer d)
 {
 	PidginWindow *win = d;
 	PidginConversation *gtkconv = pidgin_conv_window_get_active_gtkconv(win);
 
-	gtkconv_set_unseen(gtkconv, PIDGIN_UNSEEN_NONE);
+	if (gtkconv)
+		gtkconv_set_unseen(gtkconv, PIDGIN_UNSEEN_NONE);
 
 	return FALSE;
 }

mercurial