Re: gnome2: calling gnome_help_display() fails

Hi Vladislav,
Passing GNOME_PROGRAM_STANDARD_PROPERTIES to gnome_program_init()
should work. (I mean whatever Rodrigo has suggested should work

Make sure the "app-id" you are passing in program_init() should
match with your help file name. The help document should be named
as app-id.xml. (Are your help files are getting installed in the
proper location . It should be present

Actually you only need to send the DATADIR to program_init() to make
the application search the help file. (GNOME_PROGRAM_STANDARD_PROPERTIES
does the thing also).

Try this way and let me know if it works. I have modified many of the gnome apps
this way and they continue to work :)

Change in

SUBDIRS = help
+       -DDATADIR=\""$(datadir)"\"

Change gnome_program_init() to pass the DATDIR

gnome_program_init (app_id, version, LIBGNOMEUI_MODULE, nargs, args,


Vladislav Grinchenko wrote:

thanks for advice. I modified my to include defines below
and used GNOME_PROGRAM_STANDARD_PROPERTIES, with the same result - no

BTW, it doesn't look like I can pass GNOME_PROGRAM_STANDARD_PROPERTIES
to either of Gnome::Main () constructors. I went ahead and modified
libgnomemm's code to do so, but, again with no visible result.

Any other ideas to try?

On Sun, 2003-01-26 at 08:08, Rodrigo Moya wrote:

On Sun, 2003-01-26 at 05:20, Vladislav Grinchenko wrote:


I've been struggling with this for about a week.
In my gnome2 (gnomemm2) application, call to gnome_help_display() fails

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)"\" \

once you do this, gnome_help_display knows how to find the help file. At
least, it did work for me.


gnome-doc-list mailing list
gnome-doc-list gnome org

gnome-devel-list mailing list
gnome-devel-list gnome org

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