console/gntconv.c

changeset 13969
0541f389442e
parent 13959
49d3a87c2679
child 13978
70d7030b7f26
equal deleted inserted replaced
13968:45f6a17eca9b 13969:0541f389442e
163 gnt_text_view_next_line(GNT_TEXT_VIEW(ggconv->tv)); 163 gnt_text_view_next_line(GNT_TEXT_VIEW(ggconv->tv));
164 gnt_text_view_scroll(GNT_TEXT_VIEW(ggconv->tv), 0); 164 gnt_text_view_scroll(GNT_TEXT_VIEW(ggconv->tv), 0);
165 165
166 g_free(strip); 166 g_free(strip);
167 167
168 gnt_widget_set_urgent(ggconv->tv); 168 if (flags & (GAIM_MESSAGE_RECV | GAIM_MESSAGE_NICK | GAIM_MESSAGE_ERROR))
169 gnt_widget_set_urgent(ggconv->tv);
169 } 170 }
170 171
171 static void 172 static void
172 gg_write_chat(GaimConversation *conv, const char *who, const char *message, 173 gg_write_chat(GaimConversation *conv, const char *who, const char *message,
173 GaimMessageFlags flags, time_t mtime) 174 GaimMessageFlags flags, time_t mtime)
259 void gg_conversation_init() 260 void gg_conversation_init()
260 { 261 {
261 ggconvs = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, destroy_ggconv); 262 ggconvs = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, destroy_ggconv);
262 } 263 }
263 264
265 void gg_conversation_uninit()
266 {
267 g_hash_table_destroy(ggconvs);
268 ggconvs = NULL;
269 }
270

mercurial