# HG changeset patch # User Stu Tomlinson # Date 1274990354 0 # Node ID 6dbe83eee34169f8da5cb35eac776c7443563a68 # Parent 58fbaa661331e413d7c21647f1a6a4cd6c54840a Fix compiling gevolution plugin with e-d-s >= 2.29.1 Fixes #10852 diff -r 58fbaa661331 -r 6dbe83eee341 pidgin/plugins/gevolution/gevolution.c --- a/pidgin/plugins/gevolution/gevolution.c Thu May 27 19:49:51 2010 +0000 +++ b/pidgin/plugins/gevolution/gevolution.c Thu May 27 19:59:14 2010 +0000 @@ -36,11 +36,20 @@ #include "gevolution.h" +#if 0 +/* These are private headers that we probably should never have been + * including. Maybe very early versions of e-d-s required this? + * + * also, bonobo has gone away as of e-d-s 2.29.1, and this plugin still + * seems to work even on e-d-s 1.10.3 without us touching it. + * Maybe it's not really working though. I'm sure we'll find out. + */ #include #include /* TODO: bonobo is going away eventually, we'll need to find an alternative */ #include +#endif #include @@ -326,7 +335,9 @@ static gboolean plugin_load(PurplePlugin *plugin) { +#if 0 bonobo_activate(); +#endif backup_blist_ui_ops = purple_blist_get_ui_ops(); @@ -372,7 +383,9 @@ static void plugin_destroy(PurplePlugin *plugin) { +#if 0 bonobo_debug_shutdown(); +#endif } static void @@ -575,14 +588,20 @@ * * So, in conclusion, this is an evil hack, but it doesn't harm anything * and it works. + * + * And for some reason it's needed even when we don't init bonobo ourselves + * at all, so the above explanation is suspect. This is required even with + * e-d-s >= 2.29.1 where bonobo is no longer in the picture. */ g_module_make_resident(plugin->handle); +#if 0 if (!bonobo_init_full(NULL, NULL, bonobo_activation_orb_get(), CORBA_OBJECT_NIL, CORBA_OBJECT_NIL)) { purple_debug_error("evolution", "Unable to initialize bonobo.\n"); } +#endif } PURPLE_INIT_PLUGIN(gevolution, init_plugin, info)