diff options
author | Ray Strode <rstrode@redhat.com> | 2006-11-07 17:23:10 +0000 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2006-11-07 17:23:10 +0000 |
commit | 5424a4d0ea07609d863c29db01f59aab16352272 (patch) | |
tree | bf4dace2f0bffe3f6847d06117e20f35126a23d7 | |
parent | 46a49431585b61d3190cd19e7b16c6ff1179485b (diff) |
If a desktop file contains "Applications" instead of "Application" make
2006-11-07 Ray Strode <rstrode@redhat.com>
* src/validate.c: If a desktop file contains
"Applications" instead of "Application" make the warning
reflect that.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/validate.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2006-11-07 Ray Strode <rstrode@redhat.com> + * src/validate.c: If a desktop file contains + "Applications" instead of "Application" make the warning + reflect that. + +2006-11-07 Ray Strode <rstrode@redhat.com> + * src/validate.c: Print a warning instead of an error if categories aren't defined by the spec. Give special handling to the "Application" category since it's not diff --git a/src/validate.c b/src/validate.c index 371b3fb..bb5dbbd 100644 --- a/src/validate.c +++ b/src/validate.c @@ -238,8 +238,8 @@ validate_categories (const char *value, const char *key, const char *locale, con (g_ascii_strcasecmp (vals[i], "Applications") == 0)) { valid_categories = g_strjoin ("\", \"", MAIN_CATEGORIES, NULL); - print_warning (filename, "The 'Application' category is not defined by the desktop entry specification. Please use one of \"%s\" instead\n", - valid_categories); + print_warning (filename, "The '%s' category is not defined by the desktop entry specification. Please use one of \"%s\" instead\n", + vals[i], valid_categories); } else { valid_categories = g_strjoinv ("\", \"", (gchar **) categories_keys); print_warning (filename, "%s values must be one of \"%s\" (found \"%s\")\n", |