diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2007-12-17 21:22:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-12-17 21:22:59 +0800 |
commit | 70aeb47914023a4cb9931cd7d45dd00d64aae288 (patch) | |
tree | 197e7a414051560719e7ad6242627220838bff39 /plugins/mail-remote/mail-remote.c | |
parent | 8bdb85463f20be52906aad05ce7e09ffb929e331 (diff) | |
download | gsoc2013-evolution-70aeb47914023a4cb9931cd7d45dd00d64aae288.tar gsoc2013-evolution-70aeb47914023a4cb9931cd7d45dd00d64aae288.tar.gz gsoc2013-evolution-70aeb47914023a4cb9931cd7d45dd00d64aae288.tar.bz2 gsoc2013-evolution-70aeb47914023a4cb9931cd7d45dd00d64aae288.tar.lz gsoc2013-evolution-70aeb47914023a4cb9931cd7d45dd00d64aae288.tar.xz gsoc2013-evolution-70aeb47914023a4cb9931cd7d45dd00d64aae288.tar.zst gsoc2013-evolution-70aeb47914023a4cb9931cd7d45dd00d64aae288.zip |
Actually remove the mail-remote plugin, like the ChangeLog says.
svn path=/trunk/; revision=34721
Diffstat (limited to 'plugins/mail-remote/mail-remote.c')
-rw-r--r-- | plugins/mail-remote/mail-remote.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/plugins/mail-remote/mail-remote.c b/plugins/mail-remote/mail-remote.c deleted file mode 100644 index 3c8eb7c988..0000000000 --- a/plugins/mail-remote/mail-remote.c +++ /dev/null @@ -1,59 +0,0 @@ - -#include <stdio.h> -#include <unistd.h> - -#include "evolution-mail-session.h" -#include <bonobo/bonobo-main.h> - -#include "e-corba-utils.h" - -struct _EPlugin; -struct _ESEventTargetUpgrade; - -void org_gnome_evolution_mail_remote_startup(struct _EPlugin *ep, struct _ESEventTargetUpgrade *target); -int e_plugin_lib_enable(int enable); - -void org_gnome_evolution_mail_remote_startup(struct _EPlugin *ep, struct _ESEventTargetUpgrade *target) { - /* noop */ ; -} - -int e_plugin_lib_enable(int enable) -{ - static EvolutionMailSession *sess; - char *path; - FILE *fp; - - if (enable) { - static PortableServer_POA poa = NULL; - void *component; - - if (sess != NULL) - return 0; - - component = mail_component_peek(); - if (component == NULL) { - g_warning("Unable to find mail component, cannot instantiate mail remote api"); - return -1; - } - - if (poa == NULL) - poa = bonobo_poa_get_threaded (ORBIT_THREAD_HINT_PER_REQUEST, NULL); - - sess = g_object_new(evolution_mail_session_get_type(), "poa", poa, NULL); - - /* - NB: This only works if this is done early enough in the process ... - I guess it will be. But i'm not entirely sure ... - - If this wrong, then we have to add a mechanism to the mailcomponent directly - to retrieve it */ - - bonobo_object_add_interface((BonoboObject *)component, (BonoboObject *)sess); - w(printf(" ** Added mail interface to mail component\n")); - } else { - /* can't easily disable this until restart? */ - /* can we just destroy it? */ - } - - return 0; -} |