pidgin/gtkconv.c

changeset 28129
9259178fbac7
parent 28112
ce9a7ec4f6e1
child 28134
01174110e9cf
equal deleted inserted replaced
28128:4c617877d967 28129:9259178fbac7
4363 if(current_topic && !g_utf8_collate(new_topic, current_topic)){ 4363 if(current_topic && !g_utf8_collate(new_topic, current_topic)){
4364 g_free(new_topic); 4364 g_free(new_topic);
4365 return; 4365 return;
4366 } 4366 }
4367 4367
4368 gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), current_topic); 4368 if (current_topic)
4369 gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), current_topic);
4370 else
4371 gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), "");
4372
4369 prpl_info->set_chat_topic(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(conv)), 4373 prpl_info->set_chat_topic(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(conv)),
4370 new_topic); 4374 new_topic);
4371 4375
4372 g_free(new_topic); 4376 g_free(new_topic);
4373 } 4377 }

mercurial