summaryrefslogtreecommitdiff
path: root/packages/matchbox-desktop/matchbox-desktop-0.9.1
diff options
context:
space:
mode:
authorRene Wagner <rw@handhelds.org>2006-02-16 20:54:39 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-02-16 20:54:39 +0000
commita9bae3ef6bd429ef123b36652bb9cab9dd46f067 (patch)
treea87d83b894ec83e9bb0f29b8f698cf19ed6c3eed /packages/matchbox-desktop/matchbox-desktop-0.9.1
parentf86df2427ee3246df8d17f2179182c681e7e8f33 (diff)
matchbox-desktop: add patch to allow vfolders to match against multiple categories
- a vfolder can now contain something like Match=AudioVideo;Graphics;Media;Viewer;
Diffstat (limited to 'packages/matchbox-desktop/matchbox-desktop-0.9.1')
-rw-r--r--packages/matchbox-desktop/matchbox-desktop-0.9.1/.mtn2git_empty0
-rw-r--r--packages/matchbox-desktop/matchbox-desktop-0.9.1/mb-desktop-multi-category-matching.patch39
2 files changed, 39 insertions, 0 deletions
diff --git a/packages/matchbox-desktop/matchbox-desktop-0.9.1/.mtn2git_empty b/packages/matchbox-desktop/matchbox-desktop-0.9.1/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/matchbox-desktop/matchbox-desktop-0.9.1/.mtn2git_empty
diff --git a/packages/matchbox-desktop/matchbox-desktop-0.9.1/mb-desktop-multi-category-matching.patch b/packages/matchbox-desktop/matchbox-desktop-0.9.1/mb-desktop-multi-category-matching.patch
new file mode 100644
index 0000000000..e4c245e5f0
--- /dev/null
+++ b/packages/matchbox-desktop/matchbox-desktop-0.9.1/mb-desktop-multi-category-matching.patch
@@ -0,0 +1,39 @@
+--- matchbox-desktop-0.9.1/modules/dotdesktop.c.orig 2006-02-15 23:08:31.000000000 +0100
++++ matchbox-desktop-0.9.1/modules/dotdesktop.c 2006-02-16 00:31:46.000000000 +0100
+@@ -84,9 +84,33 @@
+ item_fallback = item;
+ continue;
+ }
+- if (category && strstr(category, match_str))
+- {
+- return item;
++ if (category)
++ {
++ if (strstr(match_str, ";"))
++ {
++ char *s;
++
++ while (s = strstr(match_str, ";"))
++ {
++ size_t len = s - match_str;
++ char *tok = (char *) malloc (sizeof (char) * (len + 1));
++
++ strncpy (tok, match_str, len);
++ tok[len] = 0;
++ if (strstr (category, tok))
++ {
++ free (tok);
++ return item;
++ }
++ match_str = s + 1;
++
++ free (tok);
++ }
++ }
++ else if (strstr(category, match_str))
++ {
++ return item;
++ }
+ }
+ }
+ }