pidgin/gtkconv.c

changeset 29163
c566c1227cc4
parent 29003
4b3cc9097e9f
child 29187
5bc1d91d92e2
equal deleted inserted replaced
29161:d7bba1ea597b 29163:c566c1227cc4
5491 purple_conversation_new(PURPLE_CONV_TYPE_IM, account, sender); 5491 purple_conversation_new(PURPLE_CONV_TYPE_IM, account, sender);
5492 ui_ops->create_conversation = pidgin_conv_new; 5492 ui_ops->create_conversation = pidgin_conv_new;
5493 } 5493 }
5494 5494
5495 /* Somebody wants to keep this conversation around, so don't time it out */ 5495 /* Somebody wants to keep this conversation around, so don't time it out */
5496 timer = GPOINTER_TO_INT(purple_conversation_get_data(conv, "close-timer")); 5496 if (conv) {
5497 if (timer) { 5497 timer = GPOINTER_TO_INT(purple_conversation_get_data(conv, "close-timer"));
5498 purple_timeout_remove(timer); 5498 if (timer) {
5499 purple_conversation_set_data(conv, "close-timer", GINT_TO_POINTER(0)); 5499 purple_timeout_remove(timer);
5500 purple_conversation_set_data(conv, "close-timer", GINT_TO_POINTER(0));
5501 }
5500 } 5502 }
5501 } 5503 }
5502 5504
5503 static void 5505 static void
5504 pidgin_conv_destroy(PurpleConversation *conv) 5506 pidgin_conv_destroy(PurpleConversation *conv)

mercurial