comparison plugins/gtk-signals-test.c @ 12639:366326fa9cb4

[gaim-migrate @ 14975] SF Patch #1323534 from Sadrul "There is a documented signal `conversation-switched', which never gets emitted. This patch emits this signal when a conversation is switched. This signal can be used by plugins that may want to deal with menu-items / menu-tray items etc." "The conversation-switched signals is moved to gtkconv, -switching signal is removed. Changelog.API and doc/.dox files are updated. I have included the changes in displaying-signals in the dox-files as well." Also, I added a cast to the code from my last commit to suppress a warning. I wish C knew about object oriented inheritance. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 23 Dec 2005 05:13:52 +0000
parents 71299d63801d
children e3b4e6787dff
comparison
equal deleted inserted replaced
12638:7a2a2ca48703 12639:366326fa9cb4
92 { 92 {
93 gaim_debug_misc("gtk-signals test", "displayed-chat-msg (%s, %s)\n", 93 gaim_debug_misc("gtk-signals test", "displayed-chat-msg (%s, %s)\n",
94 gaim_conversation_get_name(conv), buffer); 94 gaim_conversation_get_name(conv), buffer);
95 } 95 }
96 96
97 static void
98 conversation_switched_cb(GaimConversation *conv, void *data)
99 {
100 gaim_debug_misc("gtk-signals test", "conversation-switched (%s)\n",
101 gaim_conversation_get_name(conv));
102 }
103
97 /************************************************************************** 104 /**************************************************************************
98 * Plugin stuff 105 * Plugin stuff
99 **************************************************************************/ 106 **************************************************************************/
100 static gboolean 107 static gboolean
101 plugin_load(GaimPlugin *plugin) 108 plugin_load(GaimPlugin *plugin)
123 plugin, GAIM_CALLBACK(displayed_im_msg_cb), NULL); 130 plugin, GAIM_CALLBACK(displayed_im_msg_cb), NULL);
124 gaim_signal_connect(conv_handle, "displaying-chat-msg", 131 gaim_signal_connect(conv_handle, "displaying-chat-msg",
125 plugin, GAIM_CALLBACK(displaying_chat_msg_cb), NULL); 132 plugin, GAIM_CALLBACK(displaying_chat_msg_cb), NULL);
126 gaim_signal_connect(conv_handle, "displayed-chat-msg", 133 gaim_signal_connect(conv_handle, "displayed-chat-msg",
127 plugin, GAIM_CALLBACK(displayed_chat_msg_cb), NULL); 134 plugin, GAIM_CALLBACK(displayed_chat_msg_cb), NULL);
135 gaim_signal_connect(conv_handle, "conversation-switched",
136 plugin, GAIM_CALLBACK(conversation_switched_cb), NULL);
128 137
129 return TRUE; 138 return TRUE;
130 } 139 }
131 140
132 static gboolean 141 static gboolean