Locating pixmap files



Hi Michael,

before we can fully remove the libgnome dependency from libbonoboui,
there's one little problem: the pixmap file locator in bonobo-ui-util.c
which currently calls gnome_program_locate_file().

So if we want to drop this dependency, we need to copy this into
libbonoboui - this isn't very difficult, but we need to add a way to
get the correct app prefix.

If you install bonobo in /usr and your application into /opt/something,
then there needs to be a way to tell the pixmap file locator this path -
in libgnome, this is what the GNOME_APP_PREFIX property of GnomeProgram
is used for.

So what about adding an additional `const gchar *app_prefix' argument to
bonobo_ui_init() and a new bonobo_ui_get_app_prefix() function - and we
should also make the find_pixmap_in_path() public.

Since bonobo_ui_init() is also called from BONOBO_OAF_FACTORY and
BONOBO_SHLIB_FACTORY, so we'd also need to add it there.

What do you think ?

-- 
Martin Baulig
martin gnome org (private)
baulig suse de (work)




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