+ if ((v = g_hash_table_lookup(keys, "Categories"))) {
+ gulong i;
+ gchar *end;
+
+ link->d.app.categories = g_new(GQuark, v->value.strings.n);
+ link->d.app.n_categories = v->value.strings.n;
+
+ for (i = 0; i < v->value.strings.n; ++i) {
+ link->d.app.categories[i] =
+ g_quark_from_string(v->value.strings.a[i]);
+ c = end = end+1; /* next */
+ }
+ }
+
+ if ((v = g_hash_table_lookup(keys, "MimeType"))) {
+ /* steal the string array */
+ link->d.app.mime = v->value.strings.a;
+ v->value.strings.a = NULL;
+ v->value.strings.n = 0;
+ }