[Xfce4-commits] CVS: xfce4/xfce4-modules/modules constants.h, 1.4,1.5

edscott edscott at prodigy.net.mx
Wed Jul 21 20:21:55 CEST 2004


El mié, 21-07-2004 a las 11:11, Brian J. Tarricone escribió:
> On Wed, 21 Jul 2004, Edscott Wilson Garcia wrote:
> 
> > Update of /var/cvs/xfce/xfce4/xfce4-modules/modules
> > In directory dbguin.lunar-linux.org:/tmp/cvs-serv16171/modules
> > 
> > Modified Files:
> > 	constants.h 
> > Log Message:
> > .config, .cache changes
> >
> > +# define XFCE_USER_CONFIG_DIR g_get_home_dir(),".config","xfce4"
> > +# define XFCE_USER_CACHE_DIR g_get_home_dir(),".cache","xfce4"
> 
> i suppose this probably should have been explained better, but the 
> proper way to do this is using xfce_resource_save_location():
> http://xfce.org/~benny/api/libxfce4util/libxfce4util-Resource-lookup-functions.html#xfce-resource-save-location
> 
> this has the side benefit that if something changes, it only needs to 
> happen in libxfce4util.  this function also pays attention to the XDG_* 
> environment variables.

Yes, defined as a macro so that the switch to the library function is
easy by modifying the macro. I still have to split it with an #ifdef to
allow the --enable-oldlibraries configuration option to work. The above
code is for --enable-oldlibraries option (this option will not be
removed until there is a 4.2 release).

> 
> 	-brian
> 
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
> 




More information about the Xfce4-dev mailing list