[gnomemm] Re: gnome2: calling gnome_help_display() fails
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: Vladislav Grinchenko <vladg erols com>
- Cc: gnome-doc-list gnome org, gnome-devel-list gnome org, gnomemm-list gnome org
- Subject: [gnomemm] Re: gnome2: calling gnome_help_display() fails
- Date: 26 Jan 2003 14:08:45 +0100
On Sun, 2003-01-26 at 05:20, Vladislav Grinchenko wrote:
> Hi,
>
> I've been struggling with this for about a week.
> In my gnome2 (gnomemm2) application, call to gnome_help_display() fails
> with:
>
> Gnome-WARNING **: gnome-program.c:986: Directory properties not set
> correctly. Cannot locate application specific files.
>
when you call gnome_program_init, do it this way:
gnome_program_init (app_id, version, LIBGNOMEUI_MODULE, nargs, args,
GNOME_PROGRAM_STANDARD_PROPERTIES, NULL);
this will add the need for adding some -D to the compilation command
line, since GNOME_PROGRAM_STANDARD_PROPERTIES expects them to be
defined. They are:
-DPREFIX=\""$(prefix)"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DDATADIR=\""$(datadir)"\" \
-DLIBDIR=\""$(libdir)"\"
once you do this, gnome_help_display knows how to find the help file. At
least, it did work for me.
cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]