Re: hardcoded values in ~/.gconf



In <20030606192632 E24146 devserv devel redhat com>, Havoc Pennington wrote:

> On Wed, Jun 04, 2003 at 09:13:41PM -0400, Jody Goldberg wrote: 
> > If this is going to be solved I'd like to see something a smidge
> > more powerful.  If hard coding HOME is an issue, the same will hold
> > true for various other system dirs.
> > 
> > eg in gnumeric it irks me that we end up storing paths like
> >     /local/gnome22/test/lib/gnumeric/1.1.18/plugins/fn-info
> > 
> > Where I'd rather be smarter and do something like
> >     &gnumeric_libdir;plugins/fn-info
> 
> Proposed API for that? Maybe just
> gconf_client_set_filename_munge_func()?

How about something that takes a printf-style format string? Most paths
will be available as strings via macros (eg in config.h) or simple
function calls. So just providing a gconf_client_set_string_printf()
would be very useful, and for other things besides filenames probably.

-- 
TH * http://www.realh.co.uk



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