[Xfce4-commits] CVS: xfce4/xfdesktop/src menu-file.c,1.4,1.5

Jasper Huijsmans jasper at xfce.org
Mon Mar 1 21:42:25 CET 2004


Op ma 01-03-2004, om 19:16 schreef Brian Tarricone:
...
> Log Message:
> use a localised menu.xml.XX again
> 
...
> +	if(!env || !strcmp(env, "0")) {
> +		const gchar *userdir = xfce_get_userdir();
> +		g_snprintf(paths, PATH_MAX, "%s/%%F.%%L:%s/%%F.%%l:%s/%%F", userdir,
> +				userdir, userdir);
> +		if(xfce_get_path_localized(filename, PATH_MAX, paths, "menu.xml",
> +				G_FILE_TEST_IS_REGULAR))
> +		{
> +			is_using_system_rc = FALSE;
> +			return g_strdup(filename);
> +		}

If I read this correctly, you are looking for localized menu files in
the local config directory. If so, I'm not sure that is very useful. I
personally don't think a user wants to use a different menu file when he
changes locale. 

Not a big deal, just thought I'd mention it.

	Jasper




More information about the Xfce4-dev mailing list