comparison src/gtkconv.c @ 4598:a064e437d5eb

[gaim-migrate @ 4883] This should fix the window crash bug that Rob reported to me. I hope. I blame gtk2. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 21 Feb 2003 23:02:36 +0000
parents 7e1591c6d0d8
children 4128761bacb8
comparison
equal deleted inserted replaced
4597:1969709eee1e 4598:a064e437d5eb
1707 if (gaim_gtk_is_state_locked()) 1707 if (gaim_gtk_is_state_locked())
1708 return; 1708 return;
1709 1709
1710 win = (struct gaim_window *)user_data; 1710 win = (struct gaim_window *)user_data;
1711 1711
1712 conv = gaim_window_get_conversation_at(win, page_num); 1712 conv = gaim_window_get_conversation_at(win, page_num);
1713
1714 if (conv == NULL)
1715 return;
1716
1713 gc = gaim_conversation_get_gc(conv); 1717 gc = gaim_conversation_get_gc(conv);
1714 gtkwin = GAIM_GTK_WINDOW(win); 1718 gtkwin = GAIM_GTK_WINDOW(win);
1715 gtkconv = GAIM_GTK_CONVERSATION(conv); 1719 gtkconv = GAIM_GTK_CONVERSATION(conv);
1716 1720
1717 gaim_conversation_set_unseen(conv, GAIM_UNSEEN_NONE); 1721 gaim_conversation_set_unseen(conv, GAIM_UNSEEN_NONE);