From 86066920cf94a90975e0020dfc13aa17feb3ac6e Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 11 Jan 2007 11:17:48 +0000 Subject: [PATCH] Use a much simplier/cleaner method of setting the Applications dialog(s) icon. SVN revision: 27903 --- src/bin/e_int_config_apps.c | 43 ++++++++++++++----------------------- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/src/bin/e_int_config_apps.c b/src/bin/e_int_config_apps.c index b74399489..a7536380c 100644 --- a/src/bin/e_int_config_apps.c +++ b/src/bin/e_int_config_apps.c @@ -86,40 +86,29 @@ e_int_config_apps_once(E_Container *con, const char *title, const char *label, c _("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 *