forked from enlightenment/enlightenment
Use a much simplier/cleaner method of setting the Applications dialog(s) icon.
SVN revision: 27903
This commit is contained in:
parent
7dd04730aa
commit
86066920cf
|
@ -86,41 +86,30 @@ 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
|
||||
{
|
||||
char buf[4096];
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s/.e/e/applications/bar", e_user_homedir_get());
|
||||
if (!strcmp(path, buf))
|
||||
else if (strstr(path, "bar"))
|
||||
{
|
||||
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))
|
||||
else if (strstr(path, "startup"))
|
||||
{
|
||||
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))
|
||||
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 *
|
||||
e_int_config_apps(E_Container *con)
|
||||
|
|
Loading…
Reference in New Issue