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: Fix Application dialogs for the new icons. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_apps.c,v retrieving revision 1.55 retrieving revision 1.56 diff -u -3 -r1.55 -r1.56 --- e_int_config_apps.c 29 Dec 2006 14:16:27 -0000 1.55 +++ e_int_config_apps.c 11 Jan 2007 10:50:40 -0000 1.56 @@ -60,7 +60,7 @@ E_Config_Dialog *cfd; E_Config_Dialog_View *v; E_Config_Once *once = NULL; - + v = E_NEW(E_Config_Dialog_View, 1); v->create_cfdata = _create_data; @@ -80,11 +80,46 @@ } } - cfd = e_config_dialog_new(con, - _("Applications"), - "E", "_config_applications_dialog", - "enlightenment/applications", 0, v, once); - return cfd; + if (!path) + { + cfd = e_config_dialog_new(con, + _("Applications"), + "E", "_config_applications_dialog", + "enlightenment/applications", 0, v, once); + return cfd; + } + else + { + 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; + } + } } 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