Re: gnome2: calling gnome_help_display() fails



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]