Mercurial > pidgin
annotate plugins/gevolution/gevolution.c @ 9051:826013efffcb
[gaim-migrate @ 9827]
" - Makes (gaim_gtk_)append_blist_node_extended_menu and
(gaim_gtk_)append_blist_node_proto_menu public so that
plugins can use them to duplicate the right-click menus
(Guifications needs this for right-clicking on the
notification)
- Adds extended menu support for Contacts
- Removes the "drawing-menu" signal (It was UI
specific, and no-one except the gevolution plugin used it)
- Updates the gevolution plugin to use the new
blist-node-extended-menu signal (I can't compile the
gevolution plugin here, so my changes should be checked
by someone who can :) )
- Updates the blist signals documentation with the new
blist-node-extended-menu signal
- Updates the signals-test.c plugin to handle
blist-node-extended-menu, wrote/writing-im/chat-msg and
fixes displayed-im/chat-msg handling" --Stu Tomlinson
this moves a string but doesn't change it.
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Mon, 24 May 2004 15:17:49 +0000 |
| parents | 294ae6548d4e |
| children | a243d688c93c |
| rev | line source |
|---|---|
| 8089 | 1 /* |
| 2 * Evolution integration plugin for Gaim | |
| 3 * | |
| 4 * Copyright (C) 2003 Christian Hammond. | |
| 5 * | |
| 6 * This program is free software; you can redistribute it and/or | |
| 7 * modify it under the terms of the GNU General Public License as | |
| 8 * published by the Free Software Foundation; either version 2 of the | |
| 9 * License, or (at your option) any later version. | |
| 10 * | |
| 11 * This program is distributed in the hope that it will be useful, but | |
| 12 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 * General Public License for more details. | |
| 15 * | |
| 16 * You should have received a copy of the GNU General Public License | |
| 17 * along with this program; if not, write to the Free Software | |
| 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
| 19 * 02111-1307, USA. | |
| 20 */ | |
| 21 #include "internal.h" | |
| 22 #include "gtkinternal.h" | |
| 23 #include "gtkblist.h" | |
| 24 | |
| 25 #include "connection.h" | |
| 26 #include "debug.h" | |
| 27 #include "prefs.h" | |
| 28 #include "signals.h" | |
| 29 | |
| 30 #include "gtkconv.h" | |
| 31 #include "gtkplugin.h" | |
| 32 #include "gtkutils.h" | |
| 33 | |
| 34 #include "gevolution.h" | |
| 35 | |
| 36 #include <libedata-book/Evolution-DataServer-Addressbook.h> | |
| 37 | |
| 38 #include <libebook/e-book-listener.h> | |
| 39 #include <libebook/e-book-async.h> | |
| 40 #include <libedata-book/e-data-book-factory.h> | |
| 41 #include <bonobo/bonobo-main.h> | |
| 42 | |
| 43 #define GEVOLUTION_PLUGIN_ID "gtk-x11-gevolution" | |
| 44 | |
| 45 #define E_DATA_BOOK_FACTORY_OAF_ID \ | |
| 46 "OAFIID:GNOME_Evolution_DataServer_BookFactory" | |
| 47 | |
| 48 enum | |
| 49 { | |
| 50 COLUMN_AUTOADD, | |
| 51 COLUMN_ICON, | |
| 52 COLUMN_SCREENNAME, | |
| 53 COLUMN_DATA, | |
| 54 NUM_COLUMNS | |
| 55 }; | |
| 56 | |
| 57 static GaimBlistUiOps *backup_blist_ui_ops = NULL; | |
| 58 static GaimBlistUiOps *blist_ui_ops = NULL; | |
| 59 static EBook *book = NULL; | |
| 60 static gulong timer = 0; | |
| 61 static gulong book_view_tag = 0; | |
| 62 static EBookView *book_view = NULL; | |
| 63 | |
| 64 static void | |
| 65 update_ims_from_contact(EContact *contact, const char *name, | |
| 66 const char *prpl_id, EContactField field) | |
| 67 { | |
| 68 GList *ims = e_contact_get(contact, field); | |
| 69 GList *l, *l2; | |
| 70 | |
| 71 if (ims == NULL) | |
| 72 return; | |
| 73 | |
| 74 for (l = gaim_connections_get_all(); l != NULL; l = l->next) | |
| 75 { | |
| 76 GaimConnection *gc = (GaimConnection *)l->data; | |
| 77 GaimAccount *account = gaim_connection_get_account(gc); | |
| 78 | |
| 79 if (strcmp(gaim_account_get_protocol_id(account), prpl_id)) | |
| 80 continue; | |
| 81 | |
| 82 if (!gaim_account_get_bool(account, "gevo-autoadd", FALSE)) | |
| 83 continue; | |
| 84 | |
| 85 for (l2 = ims; l2 != NULL; l2 = l2->next) | |
| 86 { | |
| 87 if (gaim_find_buddy(account, l2->data) != NULL) | |
| 88 continue; | |
| 89 | |
| 90 gevo_add_buddy(account, _("Buddies"), l2->data, name); | |
| 91 } | |
| 92 } | |
| 93 | |
| 94 g_list_foreach(ims, (GFunc)g_free, NULL); | |
| 95 g_list_free(ims); | |
| 96 } | |
| 97 | |
| 98 static void | |
| 99 update_buddies_from_contact(EContact *contact) | |
| 100 { | |
| 101 const char *name; | |
| 102 | |
| 103 name = e_contact_get_const(contact, E_CONTACT_FULL_NAME); | |
| 104 | |
| 105 update_ims_from_contact(contact, name, "prpl-oscar", E_CONTACT_IM_AIM); | |
| 106 update_ims_from_contact(contact, name, "prpl-jabber", E_CONTACT_IM_JABBER); | |
| 107 update_ims_from_contact(contact, name, "prpl-yahoo", E_CONTACT_IM_YAHOO); | |
| 108 update_ims_from_contact(contact, name, "prpl-msn", E_CONTACT_IM_MSN); | |
| 109 update_ims_from_contact(contact, name, "prpl-oscar", E_CONTACT_IM_ICQ); | |
| 110 } | |
| 111 | |
| 112 static void | |
| 113 contacts_changed_cb(EBookView *book_view, const GList *contacts) | |
| 114 { | |
| 115 const GList *l; | |
| 116 | |
| 117 if (gaim_connections_get_all() == NULL) | |
| 118 return; | |
| 119 | |
| 120 for (l = contacts; l != NULL; l = l->next) | |
| 121 { | |
| 122 EContact *contact = (EContact *)l->data; | |
| 123 | |
| 124 update_buddies_from_contact(contact); | |
| 125 } | |
| 126 } | |
| 127 | |
| 128 static void | |
| 129 request_add_buddy(GaimAccount *account, const char *username, | |
| 130 const char *group, const char *alias) | |
| 131 { | |
| 132 if (book == NULL) | |
| 133 { | |
| 134 backup_blist_ui_ops->request_add_buddy(account, username, group, | |
| 135 alias); | |
| 136 } | |
| 137 else | |
| 138 { | |
| 139 gevo_add_buddy_dialog_show(account, username, group, alias); | |
| 140 } | |
| 141 } | |
| 142 | |
| 143 static void | |
| 144 got_book_view_cb(EBook *book, EBookStatus status, EBookView *view, | |
| 145 gpointer user_data) | |
| 146 { | |
| 147 book_view_tag = 0; | |
| 148 | |
| 149 if (status != E_BOOK_ERROR_OK) | |
| 150 { | |
| 151 gaim_debug_error("evolution", "Unable to retrieve book view! :(\n"); | |
| 152 | |
| 153 return; | |
| 154 } | |
| 155 | |
| 156 book_view = view; | |
| 157 | |
| 158 g_object_ref(book_view); | |
| 159 | |
| 160 g_signal_connect(G_OBJECT(book_view), "contacts_changed", | |
| 161 G_CALLBACK(contacts_changed_cb), book); | |
| 162 | |
| 163 g_signal_connect(G_OBJECT(book_view), "contacts_added", | |
| 164 G_CALLBACK(contacts_changed_cb), book); | |
| 165 | |
| 166 e_book_view_start(view); | |
| 167 } | |
| 168 | |
| 169 static void | |
| 170 signed_on_cb(GaimConnection *gc) | |
| 171 { | |
| 172 EBookQuery *query; | |
| 173 gboolean status; | |
| 174 GList *contacts; | |
| 175 GList *l; | |
| 176 | |
| 177 if (book == NULL) | |
| 178 return; | |
| 179 | |
| 180 query = e_book_query_any_field_contains(""); | |
| 181 | |
| 182 status = e_book_get_contacts(book, query, &contacts, NULL); | |
| 183 | |
| 184 e_book_query_unref(query); | |
| 185 | |
| 186 if (!status) | |
| 187 return; | |
| 188 | |
| 189 for (l = contacts; l != NULL; l = l->next) | |
| 190 { | |
| 191 EContact *contact = E_CONTACT(l->data); | |
| 192 | |
| 193 update_buddies_from_contact(contact); | |
| 194 | |
| 195 g_object_unref(contact); | |
| 196 } | |
| 197 | |
| 198 g_list_free(contacts); | |
| 199 } | |
| 200 | |
| 201 static void | |
| 9051 | 202 menu_item_activate_cb(GaimBlistNode *node) |
| 8089 | 203 { |
| 9051 | 204 GaimBuddy *buddy = (GaimBuddy *)node; |
| 8089 | 205 gevo_associate_buddy_dialog_new(buddy); |
| 206 } | |
| 207 | |
| 208 static void | |
| 9051 | 209 blist_node_extended_menu_cb(GaimBlistNode *node, GList **menu) |
| 8089 | 210 { |
| 9051 | 211 GaimBlistNodeAction *act; |
| 212 GaimBuddy *buddy; | |
| 8089 | 213 GtkWidget *item; |
| 214 | |
| 9051 | 215 if (!GAIM_BLIST_NODE_IS_BUDDY(node)) |
| 216 return; | |
| 217 | |
| 218 buddy = (GaimBuddy *)node; | |
| 219 | |
| 8089 | 220 if (gevo_prpl_is_supported(buddy->account, buddy)) |
| 221 { | |
| 9051 | 222 act = gaim_blist_node_action_new(_("Add to Address Book"), |
| 223 menu_item_activate_cb, NULL); | |
| 224 *menu = g_list_append(*menu, act); | |
| 8089 | 225 } |
| 226 } | |
| 227 | |
| 228 static gboolean | |
| 229 load_timeout(gpointer data) | |
| 230 { | |
| 231 GaimPlugin *plugin = (GaimPlugin *)data; | |
|
8127
96ee7b21c1ae
[gaim-migrate @ 8832]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
232 EBookQuery *query; |
| 8089 | 233 |
| 234 timer = 0; | |
| 235 | |
| 236 if (!gevo_load_addressbook(&book, NULL)) | |
| 237 return FALSE; | |
| 238 | |
|
8127
96ee7b21c1ae
[gaim-migrate @ 8832]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
239 query = e_book_query_any_field_contains(""); |
|
96ee7b21c1ae
[gaim-migrate @ 8832]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
240 |
|
96ee7b21c1ae
[gaim-migrate @ 8832]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
241 book_view_tag = e_book_async_get_book_view(book, query, NULL, -1, |
|
96ee7b21c1ae
[gaim-migrate @ 8832]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
242 got_book_view_cb, NULL); |
|
96ee7b21c1ae
[gaim-migrate @ 8832]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
243 |
|
96ee7b21c1ae
[gaim-migrate @ 8832]
Christian Hammond <chipx86@chipx86.com>
parents:
8089
diff
changeset
|
244 e_book_query_unref(query); |
| 8089 | 245 |
| 9051 | 246 gaim_signal_connect(gaim_blist_get_handle(), "blist-node-extended-menu", |
| 247 plugin, GAIM_CALLBACK(blist_node_extended_menu_cb), NULL); | |
| 8089 | 248 |
| 249 return FALSE; | |
| 250 } | |
| 251 | |
| 252 static gboolean | |
| 253 plugin_load(GaimPlugin *plugin) | |
| 254 { | |
| 255 if (!bonobo_init_full(NULL, NULL, bonobo_activation_orb_get(), | |
| 256 CORBA_OBJECT_NIL, CORBA_OBJECT_NIL)) | |
| 257 { | |
| 258 gaim_debug_error("evolution", "Unable to initialize bonobo.\n"); | |
| 259 return FALSE; | |
| 260 } | |
| 261 | |
| 262 bonobo_activate(); | |
| 263 | |
| 264 backup_blist_ui_ops = gaim_blist_get_ui_ops(); | |
| 265 | |
| 266 blist_ui_ops = g_memdup(backup_blist_ui_ops, sizeof(GaimBlistUiOps)); | |
| 267 blist_ui_ops->request_add_buddy = request_add_buddy; | |
| 268 | |
| 269 gaim_blist_set_ui_ops(blist_ui_ops); | |
| 270 | |
| 271 gaim_signal_connect(gaim_connections_get_handle(), "signed-on", | |
| 272 plugin, GAIM_CALLBACK(signed_on_cb), NULL); | |
| 273 | |
| 274 timer = g_timeout_add(1, load_timeout, plugin); | |
| 275 | |
| 276 return TRUE; | |
| 277 } | |
| 278 | |
| 279 static gboolean | |
| 280 plugin_unload(GaimPlugin *plugin) | |
| 281 { | |
| 282 gaim_blist_set_ui_ops(backup_blist_ui_ops); | |
| 283 | |
| 284 g_free(blist_ui_ops); | |
| 285 | |
| 286 backup_blist_ui_ops = NULL; | |
| 287 blist_ui_ops = NULL; | |
| 288 | |
| 289 if (book_view != NULL) | |
| 290 { | |
| 291 e_book_view_stop(book_view); | |
| 292 g_object_unref(book_view); | |
| 293 book_view = NULL; | |
| 294 } | |
| 295 | |
| 296 if (book != NULL) | |
| 297 { | |
| 298 g_object_unref(book); | |
| 299 book = NULL; | |
| 300 } | |
| 301 | |
| 302 bonobo_debug_shutdown(); | |
| 303 | |
| 304 return TRUE; | |
| 305 } | |
| 306 | |
| 307 static void | |
| 308 plugin_destroy(GaimPlugin *plugin) | |
| 309 { | |
| 310 } | |
| 311 | |
| 312 static void | |
| 313 autoadd_toggled_cb(GtkCellRendererToggle *renderer, gchar *path_str, | |
| 314 gpointer data) | |
| 315 { | |
| 316 GaimAccount *account; | |
| 317 GtkTreeModel *model = (GtkTreeModel *)data; | |
| 318 GtkTreeIter iter; | |
| 319 gboolean autoadd; | |
| 320 | |
| 321 gtk_tree_model_get_iter_from_string(model, &iter, path_str); | |
| 322 gtk_tree_model_get(model, &iter, | |
| 323 COLUMN_DATA, &account, | |
| 324 COLUMN_AUTOADD, &autoadd, | |
| 325 -1); | |
| 326 | |
| 327 gaim_account_set_bool(account, "gevo-autoadd", !autoadd); | |
| 328 | |
| 329 gtk_list_store_set(GTK_LIST_STORE(model), &iter, | |
| 330 COLUMN_AUTOADD, !autoadd, | |
| 331 -1); | |
| 332 } | |
| 333 | |
| 334 static GtkWidget * | |
| 335 get_config_frame(GaimPlugin *plugin) | |
| 336 { | |
| 337 GtkWidget *ret; | |
| 338 GtkWidget *vbox; | |
| 339 GtkWidget *label; | |
| 340 GtkWidget *sw; | |
| 341 GtkWidget *treeview; | |
| 342 GtkTreeViewColumn *column; | |
| 343 GtkCellRenderer *renderer; | |
| 344 GdkPixbuf *pixbuf, *scale = NULL; | |
| 345 GtkListStore *model; | |
| 346 GList *l; | |
| 347 | |
| 348 /* Outside container */ | |
| 349 ret = gtk_vbox_new(FALSE, 18); | |
| 350 gtk_container_set_border_width(GTK_CONTAINER(ret), 12); | |
| 351 | |
| 352 /* Configuration frame */ | |
| 353 vbox = gaim_gtk_make_frame(ret, _("Evolution Integration Configuration")); | |
| 354 | |
| 355 /* Label */ | |
| 356 label = gtk_label_new(_("Select all accounts that buddies should be " | |
| 357 "auto-added to.")); | |
| 358 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | |
| 359 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); | |
| 360 gtk_widget_show(label); | |
| 361 | |
| 362 /* Scrolled window */ | |
| 363 sw = gtk_scrolled_window_new(0, 0); | |
| 364 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), | |
| 365 GTK_POLICY_AUTOMATIC, | |
| 366 GTK_POLICY_ALWAYS); | |
| 367 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), | |
| 368 GTK_SHADOW_IN); | |
| 369 gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); | |
| 370 gtk_widget_set_size_request(sw, 300, 300); | |
| 371 gtk_widget_show(sw); | |
| 372 | |
| 373 /* Create the list model for the treeview. */ | |
| 374 model = gtk_list_store_new(NUM_COLUMNS, | |
| 375 G_TYPE_BOOLEAN, GDK_TYPE_PIXBUF, | |
| 376 G_TYPE_STRING, G_TYPE_POINTER); | |
| 377 | |
| 378 /* Setup the treeview */ | |
| 379 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(model)); | |
| 380 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE); | |
| 381 gtk_container_add(GTK_CONTAINER(sw), treeview); | |
| 382 gtk_widget_show(treeview); | |
| 383 | |
| 384 /* Setup the column */ | |
| 385 column = gtk_tree_view_column_new(); | |
| 386 gtk_tree_view_column_set_title(column, _("Account")); | |
| 387 gtk_tree_view_insert_column(GTK_TREE_VIEW(treeview), column, -1); | |
| 388 | |
| 389 /* Checkbox */ | |
| 390 renderer = gtk_cell_renderer_toggle_new(); | |
| 391 | |
| 392 g_signal_connect(G_OBJECT(renderer), "toggled", | |
| 393 G_CALLBACK(autoadd_toggled_cb), model); | |
| 394 | |
| 395 gtk_tree_view_column_pack_start(column, renderer, FALSE); | |
| 396 gtk_tree_view_column_add_attribute(column, renderer, | |
| 397 "active", COLUMN_AUTOADD); | |
| 398 | |
| 399 /* Icon */ | |
| 400 renderer = gtk_cell_renderer_pixbuf_new(); | |
| 401 gtk_tree_view_column_pack_start(column, renderer, FALSE); | |
| 402 gtk_tree_view_column_add_attribute(column, renderer, | |
| 403 "pixbuf", COLUMN_ICON); | |
| 404 | |
| 405 /* Screenname */ | |
| 406 renderer = gtk_cell_renderer_text_new(); | |
| 407 gtk_tree_view_column_pack_start(column, renderer, TRUE); | |
| 408 gtk_tree_view_column_add_attribute(column, renderer, | |
| 409 "text", COLUMN_SCREENNAME); | |
| 410 | |
| 411 | |
| 412 /* Populate */ | |
| 413 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) | |
| 414 { | |
| 415 GaimAccount *account = (GaimAccount *)l->data; | |
| 416 GtkTreeIter iter; | |
| 417 | |
| 418 gaim_debug_info("evolution", "Adding account\n"); | |
| 419 | |
| 420 gtk_list_store_append(model, &iter); | |
| 421 | |
| 422 pixbuf = create_prpl_icon(account); | |
| 423 | |
| 424 if (pixbuf != NULL) | |
| 425 { | |
| 426 scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16, | |
| 427 GDK_INTERP_BILINEAR); | |
| 428 | |
| 429 if (!gaim_account_is_connected(account)) | |
| 430 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.0, FALSE); | |
| 431 } | |
| 432 | |
| 433 gtk_list_store_set(model, &iter, | |
| 434 COLUMN_AUTOADD, | |
| 435 gaim_account_get_bool(account, "gevo-autoadd", | |
| 436 FALSE), | |
| 437 COLUMN_ICON, scale, | |
| 438 COLUMN_SCREENNAME, | |
| 439 gaim_account_get_username(account), | |
| 440 COLUMN_DATA, account, | |
| 441 -1); | |
| 442 | |
| 443 if (pixbuf != NULL) g_object_unref(G_OBJECT(pixbuf)); | |
| 444 if (scale != NULL) g_object_unref(G_OBJECT(scale)); | |
| 445 } | |
| 446 | |
| 447 gtk_widget_show_all(ret); | |
| 448 | |
| 449 return ret; | |
| 450 } | |
| 451 | |
| 452 static GaimGtkPluginUiInfo ui_info = | |
| 453 { | |
| 454 get_config_frame | |
| 455 }; | |
| 456 | |
| 457 static GaimPluginInfo info = | |
| 458 { | |
|
8749
d7b8eb1f0a18
[gaim-migrate @ 9504]
Christian Hammond <chipx86@chipx86.com>
parents:
8127
diff
changeset
|
459 GAIM_PLUGIN_API_VERSION, /**< api_version */ |
| 8089 | 460 GAIM_PLUGIN_STANDARD, /**< type */ |
| 461 GAIM_GTK_PLUGIN_TYPE, /**< ui_requirement */ | |
| 462 0, /**< flags */ | |
| 463 NULL, /**< dependencies */ | |
| 464 GAIM_PRIORITY_DEFAULT, /**< priority */ | |
| 465 | |
| 466 GEVOLUTION_PLUGIN_ID, /**< id */ | |
| 467 N_("Evolution Integration"), /**< name */ | |
| 468 VERSION, /**< version */ | |
| 469 /** summary */ | |
| 470 N_("Provides integration with Ximian Evolution."), | |
| 471 /** description */ | |
| 472 N_("Provides integration with Ximian Evolution."), | |
| 473 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ | |
| 474 GAIM_WEBSITE, /**< homepage */ | |
| 475 | |
| 476 plugin_load, /**< load */ | |
| 477 plugin_unload, /**< unload */ | |
| 478 plugin_destroy, /**< destroy */ | |
| 479 | |
| 480 &ui_info, /**< ui_info */ | |
| 8993 | 481 NULL, /**< extra_info */ |
| 482 NULL, | |
| 483 NULL | |
| 8089 | 484 }; |
| 485 | |
| 486 static void | |
| 487 init_plugin(GaimPlugin *plugin) | |
| 488 { | |
| 489 /* TODO: Change to core-remote when possible. */ | |
| 490 /* info.dependencies = g_list_append(info.dependencies, "gtk-remote"); */ | |
| 491 | |
| 492 /* | |
| 493 * I'm going to rant a little bit here... | |
| 494 * | |
| 495 * For some reason, when we init bonobo from inside a plugin, it will | |
| 496 * segfault when destroyed. The backtraces are within gmodule somewhere. | |
| 497 * There's not much I can do, and I'm not sure where the bug lies. | |
| 498 * However, plugins are only destroyed when Gaim is shutting down. After | |
| 499 * destroying the plugins, gaim ends, and anything else is of course | |
| 500 * freed. That includes this, if we make the module resident, which | |
| 501 * prevents us from being able to actually unload it. | |
| 502 * | |
| 503 * So, in conclusion, this is an evil hack, but it doesn't harm anything | |
| 504 * and it works. | |
| 505 */ | |
| 506 g_module_make_resident(plugin->handle); | |
| 507 } | |
| 508 | |
| 509 GAIM_INIT_PLUGIN(gevolution, init_plugin, info) |
