]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/matchbox-panel/matchbox-panel-0.9.2/mb-panel-multi-category-matching.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / matchbox-panel / matchbox-panel-0.9.2 / mb-panel-multi-category-matching.patch
1 --- matchbox-panel-0.9.2/applets/mb-applet-menu-launcher.c      2005-04-06 22:13:00.000000000 +0200
2 +++ matchbox-panel-0.9.2.new/applets/mb-applet-menu-launcher.c  2006-02-16 00:43:28.000000000 +0100
3 @@ -566,7 +566,28 @@
4                                     {
5                                       fallback = menu_lookup[i].item;
6                                     }
7 -                                 if (strstr(category, 
8 +                                 if (strstr(menu_lookup[i].match_str, ";"))
9 +                                   {
10 +                                     char *s;
11 +                                     char *match_str = menu_lookup[i].match_str;
12 +                                     
13 +                                     while (s = strstr(match_str, ";"))
14 +                                       {
15 +                                         size_t len = s - match_str;
16 +                                         char *tok = (char *) malloc (sizeof (char) * (len + 1));
17 +
18 +                                         strncpy (tok, match_str, len);
19 +                                         tok[len] = 0;
20 +                                         match_str = s + 1;
21 +
22 +                                         if (strstr (category, tok))
23 +                                           {
24 +                                             m = menu_lookup[i].item;
25 +                                           }
26 +                                         free (tok);
27 +                                       }
28 +                                   }
29 +                                 else if (strstr(category, 
30                                              menu_lookup[i].match_str))
31                                     {
32                                       m = menu_lookup[i].item;