Re: Path for UI xml files and bonobo_ui_util_get_ui_fname?



On Wednesday, May 30, 2001, at 09:24  AM, Archit Baweja wrote:

But then why do we have to supply the path to
 bonobo_ui_util_set_ui. When in bonobo_ui_util_get_ui_fname (called by
bonobo_ui_util_set_ui) it simply ignores it?

It doesn't ignore it. If you read the code in bonobo_ui_util_get_ui_fname,
you'll note that it looks at the component_datadir variable, and adds on "/gnome/ui/" and then the file name. If that doesn't work, then it falls back to BONOBO_UIDIR.

The path that's passed tells Bonobo which datadir to look in. If everything is installed in the "/usr" prefix, then it's always "/usr/share" . But if Bonobo is installed in "/usr" and a test program is installed in "/test-program", then the code needs to also look in "/test-program/share/
gnome/ui" for the test program's UI xml files.

    -- Darin




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