pidgin/plugins/spellchk.c

changeset 40894
80d9d7a73a60
parent 40502
875489636847
child 41081
0c1c063d71f6
equal deleted inserted replaced
40893:0131c0786803 40894:80d9d7a73a60
2264 2264
2265 /* 2265 /*
2266 * EXPORTED FUNCTIONS 2266 * EXPORTED FUNCTIONS
2267 */ 2267 */
2268 2268
2269 static PidginPluginInfo * 2269 static GPluginPluginInfo *
2270 plugin_query(GError **error) 2270 spell_check_query(GError **error)
2271 { 2271 {
2272 const gchar * const authors[] = { 2272 const gchar * const authors[] = {
2273 "Eric Warmenhoven <eric@warmenhoven.org>", 2273 "Eric Warmenhoven <eric@warmenhoven.org>",
2274 NULL 2274 NULL
2275 }; 2275 };
2288 NULL 2288 NULL
2289 ); 2289 );
2290 } 2290 }
2291 2291
2292 static gboolean 2292 static gboolean
2293 plugin_load(PurplePlugin *plugin, GError **error) 2293 spell_check_load(GPluginPlugin *plugin, GError **error)
2294 { 2294 {
2295 void *conv_handle = purple_conversations_get_handle(); 2295 void *conv_handle = purple_conversations_get_handle();
2296 GList *convs; 2296 GList *convs;
2297 2297
2298 #if 0 2298 #if 0
2315 2315
2316 return TRUE; 2316 return TRUE;
2317 } 2317 }
2318 2318
2319 static gboolean 2319 static gboolean
2320 plugin_unload(PurplePlugin *plugin, GError **error) 2320 spell_check_unload(GPluginPlugin *plugin, GError **error)
2321 { 2321 {
2322 GList *convs; 2322 GList *convs;
2323 2323
2324 /* Detach from existing conversations */ 2324 /* Detach from existing conversations */
2325 for (convs = purple_conversations_get_all(); convs != NULL; convs = convs->next) 2325 for (convs = purple_conversations_get_all(); convs != NULL; convs = convs->next)
2332 } 2332 }
2333 2333
2334 return TRUE; 2334 return TRUE;
2335 } 2335 }
2336 2336
2337 PURPLE_PLUGIN_INIT(spellcheck, plugin_query, plugin_load, plugin_unload); 2337 GPLUGIN_NATIVE_PLUGIN_DECLARE(spell_check)

mercurial