Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_configure.c e_eap_editor.c e_int_config_apps_order.c e_int_config_apps_order.h Log Message: add "new application" back since efreet fun =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_configure.c,v retrieving revision 1.98 retrieving revision 1.99 diff -u -3 -r1.98 -r1.99 --- e_configure.c 10 May 2007 13:15:08 -0000 1.98 +++ e_configure.c 19 May 2007 02:13:11 -0000 1.99 @@ -404,6 +404,7 @@ _e_configure_item_add(cat, _("Startup"), "enlightenment/startup", e_int_config_startup); cat = _e_configure_category_add(eco, _("Applications"), "enlightenment/applications"); + _e_configure_item_add(cat, _("New Application"), "enlightenment/add_application", e_int_config_apps_add); _e_configure_item_add(cat, _("IBar Applications"), "enlightenment/ibar_applications", e_int_config_apps_ibar); _e_configure_item_add(cat, _("Restart Applications"), "enlightenment/restart_applications", e_int_config_apps_restart); _e_configure_item_add(cat, _("Startup Applications"), "enlightenment/startup_applications", e_int_config_apps_startup); =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_eap_editor.c,v retrieving revision 1.81 retrieving revision 1.82 diff -u -3 -r1.81 -r1.82 --- e_eap_editor.c 4 May 2007 16:21:53 -0000 1.81 +++ e_eap_editor.c 19 May 2007 02:13:11 -0000 1.82 @@ -105,6 +105,7 @@ } return desktop; } + EAPI E_Desktop_Edit * e_desktop_border_edit(E_Container *con, E_Border *bd) { =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_apps_order.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- e_int_config_apps_order.c 17 Apr 2007 09:28:52 -0000 1.7 +++ e_int_config_apps_order.c 19 May 2007 02:13:11 -0000 1.8 @@ -27,6 +27,38 @@ static void _cb_del(void *data, void *data2); EAPI E_Config_Dialog * + e_int_config_apps_add(E_Container *con) +{ + E_Desktop_Edit *ed; + Efreet_Desktop *de = NULL; + char path[PATH_MAX]; + const char *desktop_dir; + + desktop_dir = e_user_desktop_dir_get(); + if (desktop_dir) + { + int i; + + for (i = 1; i < 65536; i++) + { + snprintf(path, sizeof(path), "%s/_new_app-%i.desktop", + desktop_dir, i); + if (!ecore_file_exists(path)) + { + de = efreet_desktop_empty_new(path); + break; + } + } + if (!de) de = efreet_desktop_empty_new(NULL); + } + else + de = efreet_desktop_empty_new(NULL); + if (!de) return NULL; + ed = e_desktop_edit(con, de); + return (E_Config_Dialog *)ed; +} + +EAPI E_Config_Dialog * e_int_config_apps_ibar(E_Container *con) { E_Config_Once *once; =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_apps_order.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- e_int_config_apps_order.h 6 Apr 2007 01:00:54 -0000 1.1 +++ e_int_config_apps_order.h 19 May 2007 02:13:11 -0000 1.2 @@ -3,6 +3,7 @@ #ifndef E_INT_CONFIG_APPS_ORDER_H #define E_INT_CONFIG_APPS_ORDER_H +EAPI E_Config_Dialog *e_int_config_apps_add(E_Container *con); EAPI E_Config_Dialog *e_int_config_apps_ibar(E_Container *con); EAPI E_Config_Dialog *e_int_config_apps_ibar_other(E_Container *con, const char *path); EAPI E_Config_Dialog *e_int_config_apps_startup(E_Container *con); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs