forked from enlightenment/enlightenment
<PrinceAMD> http://pastebin.ca/1557990 < fix Ticket #407
<PrinceAMD> raster, http://trac.enlightenment.org/e/ticket/407 SVN revision: 42336
This commit is contained in:
parent
2108d059ef
commit
f12dc1d4df
|
@ -250,6 +250,7 @@ e_int_config_wallpaper_fsel(E_Config_Dialog *parent)
|
||||||
Evas_Coord w, h;
|
Evas_Coord w, h;
|
||||||
Evas_Modifier_Mask mask;
|
Evas_Modifier_Mask mask;
|
||||||
const char *fdev, *fpath;
|
const char *fdev, *fpath;
|
||||||
|
char buf[4096];
|
||||||
|
|
||||||
fsel = E_NEW(FSel, 1);
|
fsel = E_NEW(FSel, 1);
|
||||||
if (!fsel) return NULL;
|
if (!fsel) return NULL;
|
||||||
|
@ -306,12 +307,24 @@ e_int_config_wallpaper_fsel(E_Config_Dialog *parent)
|
||||||
fsel->content_obj = o;
|
fsel->content_obj = o;
|
||||||
|
|
||||||
fdev = e_config->wallpaper_import_last_dev;
|
fdev = e_config->wallpaper_import_last_dev;
|
||||||
fpath = e_config->wallpaper_import_last_path;
|
snprintf(buf, sizeof(buf), "%s%s",fdev,e_config->wallpaper_import_last_path);
|
||||||
|
|
||||||
|
if(!ecore_file_exists(ecore_file_realpath(buf)))
|
||||||
|
{
|
||||||
|
fpath = "/";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fpath = e_config->wallpaper_import_last_path;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ((!fdev) && (!fpath))
|
if ((!fdev) && (!fpath))
|
||||||
{
|
{
|
||||||
fdev = "~/";
|
fdev = "~/";
|
||||||
fpath = "/";
|
fpath = "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
ofm = e_widget_fsel_add(evas, fdev, fpath, NULL, NULL, NULL, NULL,
|
ofm = e_widget_fsel_add(evas, fdev, fpath, NULL, NULL, NULL, NULL,
|
||||||
NULL, NULL, 1);
|
NULL, NULL, 1);
|
||||||
e_widget_fsel_window_object_set(ofm, E_OBJECT(win));
|
e_widget_fsel_window_object_set(ofm, E_OBJECT(win));
|
||||||
|
|
Loading…
Reference in New Issue