fix file set for font preview to use config theme path return.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 18 Jun 2012 11:07:05 +0000 (11:07 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 18 Jun 2012 11:07:05 +0000 (11:07 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@72383 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/options_font.c

index fe5ca1feb6ba46277c27254240e597aa10780ba4..09d4e18e42603e1818b5417d859de68671c91fd1 100644 (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,