src/conversation.c

changeset 9517
a4b0dccad1f8
parent 9514
05247f11e65c
child 9528
fda6e5341bf2
equal deleted inserted replaced
9516:af5712b2d75b 9517:a4b0dccad1f8
1840 chat->who = (who == NULL ? NULL : g_strdup(who)); 1840 chat->who = (who == NULL ? NULL : g_strdup(who));
1841 chat->topic = (topic == NULL ? NULL : g_strdup(topic)); 1841 chat->topic = (topic == NULL ? NULL : g_strdup(topic));
1842 1842
1843 gaim_conversation_update(gaim_conv_chat_get_conversation(chat), 1843 gaim_conversation_update(gaim_conv_chat_get_conversation(chat),
1844 GAIM_CONV_UPDATE_TOPIC); 1844 GAIM_CONV_UPDATE_TOPIC);
1845
1846 gaim_signal_emit(gaim_conversations_get_handle(), "chat-topic-changed",
1847 chat->conv, chat->who, chat->topic);
1845 } 1848 }
1846 1849
1847 const char * 1850 const char *
1848 gaim_conv_chat_get_topic(const GaimConvChat *chat) 1851 gaim_conv_chat_get_topic(const GaimConvChat *chat)
1849 { 1852 {
2851 2854
2852 gaim_signal_register(handle, "chat-left", 2855 gaim_signal_register(handle, "chat-left",
2853 gaim_marshal_VOID__POINTER, NULL, 1, 2856 gaim_marshal_VOID__POINTER, NULL, 1,
2854 gaim_value_new(GAIM_TYPE_SUBTYPE, 2857 gaim_value_new(GAIM_TYPE_SUBTYPE,
2855 GAIM_SUBTYPE_CONVERSATION)); 2858 GAIM_SUBTYPE_CONVERSATION));
2859
2860 gaim_signal_register(handle, "chat-topic-changed",
2861 gaim_marshal_VOID__POINTER_POINTER_POINTER, NULL, 2,
2862 gaim_value_new(GAIM_TYPE_SUBTYPE,
2863 GAIM_SUBTYPE_CONVERSATION),
2864 gaim_value_new(GAIM_TYPE_STRING),
2865 gaim_value_new(GAIM_TYPE_STRING));
2856 } 2866 }
2857 2867
2858 void 2868 void
2859 gaim_conversations_uninit(void) 2869 gaim_conversations_uninit(void)
2860 { 2870 {

mercurial