elm_test: Also filter categories when typing in search bar
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 19 Dec 2016 04:24:12 +0000 (13:24 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 20 Dec 2016 00:42:51 +0000 (09:42 +0900)
src/bin/elementary/test.c

index 0eb861d..22209ec 100644 (file)
@@ -391,7 +391,9 @@ _menu_create(const char *option_str)
    _clear_menu();
    EINA_LIST_FOREACH(tests, l, t)
      {
-        if (option_str && !strcasestr(t->name, option_str)) continue;
+        if (option_str &&
+            !(strcasestr(t->name, option_str) || strcasestr(t->category, option_str)))
+          continue;
         if ((!pcat) || (strcmp(pcat, t->category)))
           {
              if (t->frame)