Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_int_config_apps.c Log Message: Use a much simplier/cleaner method of setting the Applications dialog(s) icon. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_apps.c,v retrieving revision 1.56 retrieving revision 1.57 diff -u -3 -r1.56 -r1.57 --- e_int_config_apps.c 11 Jan 2007 10:50:40 -0000 1.56 +++ e_int_config_apps.c 11 Jan 2007 11:17:48 -0000 1.57 @@ -86,40 +86,29 @@ _("Applications"), "E", "_config_applications_dialog", "enlightenment/applications", 0, v, once); - return cfd; } - else + else if (strstr(path, "bar")) { - char buf[4096]; - - snprintf(buf, sizeof(buf), "%s/.e/e/applications/bar", e_user_homedir_get()); - if (!strcmp(path, buf)) - { cfd = e_config_dialog_new(con, _("Applications"), "E", "_config_applications_dialog", "enlightenment/ibar_applications", 0, v, once); - return cfd; - } - snprintf(buf, sizeof(buf), "%s/.e/e/applications/startup", e_user_homedir_get()); - if (!strcmp(path, buf)) - { - cfd = e_config_dialog_new(con, - _("Applications"), - "E", "_config_applications_dialog", - "enlightenment/startup_applications", 0, v, once); - return cfd; - } - snprintf(buf, sizeof(buf), "%s/.e/e/applications/restart", e_user_homedir_get()); - if (!strcmp(path, buf)) - { - cfd = e_config_dialog_new(con, - _("Applications"), - "E", "_config_applications_dialog", - "enlightenment/restart_applications", 0, v, once); - return cfd; - } } + else if (strstr(path, "startup")) + { + cfd = e_config_dialog_new(con, + _("Applications"), + "E", "_config_applications_dialog", + "enlightenment/startup_applications", 0, v, once); + } + else if (strstr(path, "restart")) + { + cfd = e_config_dialog_new(con, + _("Applications"), + "E", "_config_applications_dialog", + "enlightenment/restart_applications", 0, v, once); + } + return cfd; } EAPI E_Config_Dialog * ------------------------------------------------------------------------- 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