Don't include any apps that are specifically for other window managers, but
authorDavid Walter Seikel <onefang@gmail.com>
Sun, 5 Nov 2006 12:02:52 +0000 (12:02 +0000)
committerDavid Walter Seikel <onefang@gmail.com>
Sun, 5 Nov 2006 12:02:52 +0000 (12:02 +0000)
do include any that are specifically for us.

SVN revision: 26961

src/bin/e_fdo_menu_to_order.c

index a099409..82a7369 100644 (file)
@@ -226,7 +226,10 @@ _e_fdo_menu_to_order_cb_desktop_foreach(void *list_data, void *data)
          desktop = ecore_desktop_get(path, NULL);
          /* Check if we process */
          if (!desktop) return;
-         if ( (!desktop->hidden) && (!desktop->no_display) && ((desktop->type == NULL) || (strcmp(desktop->type, "Application") == 0)) )
+         if ( (!desktop->hidden) && (!desktop->no_display) 
+           && ((desktop->type == NULL) || (strcmp(desktop->type, "Application") == 0)) 
+           && ((desktop->OnlyShowIn == NULL) ||(ecore_hash_get(desktop->OnlyShowIn, "Enlightenment") != NULL))
+           && ((desktop->NotShowIn == NULL) ||(ecore_hash_get(desktop->NotShowIn, "Enlightenment") == NULL)) )
             {
                char *category;
               Ecore_Hash *menu;