Also set preview for when a new Custom bg is selected.

SVN revision: 50567
This commit is contained in:
Christopher Michael 2010-07-28 01:54:48 +00:00
parent d521219c29
commit c14e45ab4c
1 changed files with 7 additions and 1 deletions

View File

@ -95,7 +95,11 @@ e_int_config_desklock_fsel_done(E_Config_Dialog *cfd, const char *bg_file)
if (!(cfdata = cfd->cfdata)) return;
cfdata->bg_fsel = NULL;
if (bg_file)
eina_stringshare_replace(&cfdata->bg, bg_file);
{
eina_stringshare_replace(&cfdata->bg, bg_file);
e_widget_preview_edje_set(cfdata->gui.o_bg, cfdata->bg,
"e/desktop/background");
}
}
static void
@ -458,6 +462,8 @@ _cb_method_change(void *data, Evas_Object * obj, void *event_info)
"e/desktop/background");
break;
default:
e_widget_preview_edje_set(cfdata->gui.o_bg, cfdata->bg,
"e/desktop/background");
break;
}
}