Re: [Evolution-hackers] Running an eplugin as standalone application

I'm not sure this approach will ever be practical as a general one.  Almost all of the api's may end up calling many other subsystems, all which must be properly initialised in the correct order, for instance.  Although if it really does only use e-passwords, i guess it should work.

In what way does this not work anyway, crash, or just return nothing?

On Thu, 2005-04-14 at 10:55 +0200, Thomas Cataldo wrote:

I have an eplugin started from a menu item added to the tools menu.

To ease the valgrinding of my plugin, I'd like to run it as a stand
alone application. I created a header with the function exported by the
plugin :

#include <e-util/e-plugin.h>
#include "es-menu.h"

void fr_aliacom_cal_subscribe_start(EPlugin *ep, 
                                    ESMenuTargetShell *target);

Then I create a standalone test program :

#include <gtk/gtk.h>
#include "cal-subscribe.h"
#include <libedataserverui/e-passwords.h>

int main(int ac, char** av) {
    gtk_init(&ac, &av);


    fr_aliacom_cal_subscribe_start(NULL, NULL);


My problem is that my plugin uses e-passwords, and when launched as
standalone I can't retreive account's passwords. I can't figure out what
I need to init, because e_passwords_init() does not seem sufficient. Can
you help me ?


evolution-hackers maillist  -  evolution-hackers lists ximian com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]