| 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 |