Re: [gnomemm] Help with yelp



Ooops, forgot the error message:

Gnome-WARNING **: gnome-program.c:986:

	Directory properties not set correctly.
	Cannot locate application specific files.

The application itself core dumps in the call to locate_file().

BTW, all help-related files are installed correctly. If I try to view
document from command line with yelp, it works just fine:


% yelp ghelp:/usr/share/gnome/help/gwavmerger/C/gwavmerger.xml



On Wed, 2003-01-29 at 17:39, Vladislav Grinchenko wrote:
> Hi,
> 
> I have a problem with the following code in gnomemm-2.1:
> 
> --------------------------------------------------------------
> Gnome::Main kit(PACKAGE, VERSION,
>                 Gnome::UI::module_info_get (),
>                 gtk_argc, gtk_argv);
> 
> Glib::ustring ustr;
> Glib::ustring file ("gwavmerger.xml");
> Glib::RefPtr<Gnome::Program> prog = Gnome::Program::get ();
> 
> ustr = prog->locate_file (Gnome::FILE_DOMAIN_APP_DATADIR, file);
> 
> printf("location: %s", ustr.c_str ());
> --------------------------------------------------------------
> 
> In my Makefile.am, I include datadir as:
> 
> 
> INCLUDES = \
>         -DDATADIR=\""$(datadir)"\"
> 
> Can someone verify that with his gnomemm-2.x application?
> 
> People on Gnome mailing list recommended to pass
> GNOME_PROGRAM_STANDARD_PROPERTIES to gnome_program_init(),
> but gnomemm's API won't allow for property pairs.
> What I ultimately want is a property pair:
> 
> (GNOME_PARAM_APP_DATADIR, DATADIR)
> 
> but there is no way of setting that. I hoped gnomemm API would have
> a method to add/modify application property later, but it doesn't.
> 
> The bottom line: I cannot get Yelp work with my application.
> 
> 
> Any ideas?
> Anybody else has gnomemm2 app with Help contents working via XML/Yelp?
> 
> thanks,
> -VLG
> 
> -- 
> _____________________________________________________________
> Vladislav Grinchenko           e-mail (w): vgrinche integ com
> Software Engineer                     (h): vladg erols com
> Integral Systems, Inc.               http: www.integ.com
> 
> "Focus on quality, and productivity will follow." C. Jones
> _____________________________________________________________
> _______________________________________________
> gnomemm-list mailing list
> gnomemm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnomemm-list
-- 
_____________________________________________________________
Vladislav Grinchenko           e-mail (w): vgrinche integ com
Software Engineer                     (h): vladg erols com
Integral Systems, Inc.               http: www.integ.com

"Focus on quality, and productivity will follow." C. Jones
_____________________________________________________________



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