fix file set for font preview to use config theme path return.

SVN revision: 72383
This commit is contained in:
Carsten Haitzler 2012-06-18 11:07:05 +00:00
parent 9568fb677f
commit 464b2986ed
1 changed files with 2 additions and 4 deletions

View File

@ -134,13 +134,11 @@ _cb_op_font_content_get(void *data, Evas_Object *obj, const char *part)
if (!strcmp(part, "elm.swallow.icon"))
{
Evas_Object *o;
char buf[4096];
Config *config = termio_config_get(f->term);
o = edje_object_add(evas_object_evas_get(obj));
snprintf(buf, sizeof(buf), "%s/themes/%s",
elm_app_data_dir_get(), config->theme);
edje_object_file_set(o, buf, "terminology/fontpreview");
edje_object_file_set(o, config_theme_path_get(config),
"terminology/fontpreview");
edje_object_signal_callback_add(o, "edje,change,file", "edje",
_reload_theme, NULL);
evas_object_size_hint_min_set(o,