Enlightenment CVS committal Author : onefang Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_desktop Modified Files: ecore_desktop.c Log Message: Bit'o'comentary. =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop.c,v retrieving revision 1.50 retrieving revision 1.51 diff -u -3 -r1.50 -r1.51 --- ecore_desktop.c 25 Sep 2006 12:50:23 -0000 1.50 +++ ecore_desktop.c 25 Sep 2006 13:04:25 -0000 1.51 @@ -194,6 +194,7 @@ stated = 1; } } + /* Not in cache, get it the slow way. */ if (!result) { result = calloc(1, sizeof(Ecore_Desktop)); @@ -215,11 +216,13 @@ result->group = ecore_hash_get(result->data, "Desktop Entry"); if (!result->group) result->group = ecore_hash_get(result->data, "KDE Desktop Entry"); + /* This is a "Desktop" file, probably an application. */ if (result->group) { int size = 0; value = (char *) ecore_file_get_file(result->original_path); + /* Figure out the eap_name. */ if (value) { char *temp; @@ -243,6 +246,7 @@ IFGETDUP(value, "File", result->file); IFGETDUP(value, "Exec", result->exec); + /* Seperate out the params. */ if (result->exec) { char *exe = NULL; @@ -257,11 +261,11 @@ } IFGETDUP(value, "StartupWMClass", result->window_class); + /* Guess a window class - exe name with first letter capitalized. */ if ((!value) && (result->exec)) { char *tmp; - /* Guess - exe name with first letter capitalized. */ tmp = strdup(result->exec); if (tmp) { @@ -293,6 +297,7 @@ IFGETDUP(value, "X-Enlightenment-IconClass", result->icon_class); IFGETDUP(value, "X-Enlightenment-IconPath", result->icon_path); + /* If the icon is a path put the full path into the icon_path member.*/ if ((result->icon != NULL) && (result->icon_path == NULL) && (strchr(result->icon, '/') != NULL)) { @@ -326,13 +331,11 @@ } } - /* icon/class is a list of standard icons from the theme that can override the icon created above. - * Use (from .desktop) name,exe name,categories. It's case sensitive, the reccomendation is to lowercase it. - * It should be most specific to most generic. firefox,browser,internet for instance - */ - - /* If the icon in the file is not a full path, just put it first in the class, greatly simplifies things. - * Otherwise, put that full path into the icon_path member. + /* icon/class is a list of standard icons from the theme that can override the icon created above. + * Use (from .desktop) name.edj,exec,categories. It's case sensitive, the reccomendation is to lowercase it. + * It should be most specific to most generic. firefox,browser,internet for instance + * If the icon in the file is not a full path, just put it first in the class, greatly simplifies things later + * when it's time to do the search. */ if (!result->icon_class) { ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs