Correct usage of e_util_dialog_show.

SVN revision: 37173
This commit is contained in:
Sebastian Dransfeld 2008-10-26 20:49:32 +00:00
parent f8b9241dd8
commit 27849f76d6
1 changed files with 2 additions and 6 deletions

View File

@ -882,14 +882,11 @@ e_util_desktop_menu_item_icon_add(Efreet_Desktop *desktop, unsigned int size, E_
EAPI int
e_util_dir_check(const char *dir)
{
char msg[PATH_MAX];
if (!ecore_file_exists(dir))
{
if (!ecore_file_mkpath(dir))
{
snprintf (msg, sizeof (msg), "Failed to create directory: %s .<br>Check that you have correct permissions set.", dir);
e_util_dialog_show("Error creating directory", msg);
e_util_dialog_show("Error creating directory", "Failed to create directory: %s .<br>Check that you have correct permissions set.", dir);
return 0;
}
}
@ -897,8 +894,7 @@ e_util_dir_check(const char *dir)
{
if (!ecore_file_is_dir(dir))
{
snprintf (msg, sizeof (msg), "Failed to create directory: %s .<br>A file of that name already exists.", dir);
e_util_dialog_show("Error creating directory", msg);
e_util_dialog_show("Error creating directory", "Failed to create directory: %s .<br>A file of that name already exists.", dir);
return 0;
}
}