add "new application" back since efreet fun
SVN revision: 30029
This commit is contained in:
parent
2ba3eb08e8
commit
b2eee946dd
|
@ -404,6 +404,7 @@ _e_configure_fill_cat_list(void *data)
|
|||
_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);
|
||||
|
|
|
@ -105,6 +105,7 @@ e_desktop_border_create(E_Border *bd)
|
|||
}
|
||||
return desktop;
|
||||
}
|
||||
|
||||
EAPI E_Desktop_Edit *
|
||||
e_desktop_border_edit(E_Container *con, E_Border *bd)
|
||||
{
|
||||
|
|
|
@ -26,6 +26,38 @@ static void _list_cb_selected(void *data);
|
|||
static void _cb_add(void *data, void *data2);
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue