comparison src/conversation.c @ 9517:0524b36c701a

[gaim-migrate @ 10344] " And hopefully i got everything updated this time around.. everything being signals_test.c, plugins/ChangeLog.API and doc/conversation-signals.dox." --Gary Kramlich committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 12 Jul 2004 19:37:07 +0000
parents 1fac0336890c
children 7ca073ddf9b0
comparison
equal deleted inserted replaced
9516:464e2b6bc7e6 9517:0524b36c701a
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 {