From: discomfitor Date: Mon, 18 Jun 2012 12:12:44 +0000 (+0000) Subject: only parse retarded canonical ini fields when not using strict spec compliance X-Git-Tag: 2.0_alpha~4^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c2f2ba20a0e74e134e57d1e7db014269af1403d;p=framework%2Fuifw%2Fefreet.git only parse retarded canonical ini fields when not using strict spec compliance git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@72387 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/efreet_desktop.c b/src/lib/efreet_desktop.c index d455a8e..9293f94 100644 --- a/src/lib/efreet_desktop.c +++ b/src/lib/efreet_desktop.c @@ -810,7 +810,9 @@ efreet_desktop_generic_fields_parse(Efreet_Desktop *desktop, Efreet_Ini *ini) const char *not_show_in = NULL, *only_show_in = NULL; val = efreet_ini_localestring_get(ini, "Name"); +#ifndef STRICT_SPEC if (!val) val = efreet_ini_localestring_get(ini, "_Name"); +#endif if (val) desktop->name = strdup(val); else { @@ -822,7 +824,9 @@ efreet_desktop_generic_fields_parse(Efreet_Desktop *desktop, Efreet_Ini *ini) if (val) desktop->generic_name = strdup(val); val = efreet_ini_localestring_get(ini, "Comment"); +#ifndef STRICT_SPEC if (!val) val = efreet_ini_localestring_get(ini, "_Comment"); +#endif if (val) desktop->comment = strdup(val); val = efreet_ini_localestring_get(ini, "Icon");