[gnomemm] gnome2: calling gnome_help_display() fails
- From: Vladislav Grinchenko <vladg erols com>
- To: gnome-doc-list gnome org, gnome-devel-list gnome org, gnomemm-list gnome org
- Subject: [gnomemm] gnome2: calling gnome_help_display() fails
- Date: 25 Jan 2003 23:20:11 -0500
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.
GError reports: "Help file does not exist"
The call looks like this:
GError* error = NULL;
if (!gnome_help_display ("gwavmerger.xml", NULL, &error)) {
// report error
g_error_free (error);
}
If I build RPM package and install my application, Yelp loads the
manual, gwavmerger.xml, just fine.
RPM installs documentation in following directories:
/usr/share/gnome/help/gwavmerger/C/fdl-appendix.xml
/usr/share/gnome/help/gwavmerger/C/figures
/usr/share/gnome/help/gwavmerger/C/figures/gwavmerger.png
/usr/share/gnome/help/gwavmerger/C/gwavmerger.xml
/usr/share/gnome/help/gwavmerger/C/legal.xml
/usr/share/omf/gwavmerger
/usr/share/omf/gwavmerger/gwavmerger-C.omf
The category is GNOME;Applications
The spec file configures the package with like so:
CFLAGS="$RPM_OPT_FLAGS" \
./configure $ARCH_FLAGS \
--prefix=%{prefix} \
--datadir=%{datadir} \
--sysconfdir=%{_sysconfdir} \
--bindir=%{_bindir} \
--disable-maintainer-mode \
--disable-static \
--enable-shared
where prefix=/usr, datadir=/usr/share
and the scrollkeeper is run like so:
%post
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update
-q; fi
%postun
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update
-q; fi
My application is compiled against libgnome-2.1.1, libgnomeui-2.1.2.
Any ideas would be highly appreciated.
-VLG
P.S. I have looked at gnome-utils and gnome-docu/gdp/gdp-example2 from
CVS.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]