Re: [evolution-patches] Fix for calendar/gui/dialogs/* [Memo-Editor]



> +       bonobo_ui_util_set_ui (editor->uic, PREFIX,
> +                               EVOLUTION_UIDIR "/evolution-memo-editor.xml",
> +                              "evolution-memo-editor", NULL);
> +

Please construct the path to the xml file at run-time, like this:

Be sure to #include <e-util/e-util-private.h> to get Win32 redefinition
of EVOLUTION_UIDIR.

char *xmlfile;
...
xmlfile = g_build_filename (EVOLUTION_UIDIR, "evolution-memo-editor.xml", NULL);
...
bonobo_ui_util_set_ui (editor->uic, PREFIX, xmlfile, "evolution-memo-editor", NULL);
g_free (xmlfile);

So that it works on Win32, too, where Evolution can be installed in a
freely chosen location, and the EVOLUTION_UIDIR macro expands to a call
to a function.

See for instance comp-editor.c for an example.

--tml





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