summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-05-28 16:17:58 +0900
committerHermet Park <chuneon.park@samsung.com>2020-05-28 16:17:59 +0900
commit92455d42a063229338247a3b21ba0c4a06d43bfe (patch)
tree714f11cc16b87faecb388da5ba4b7befcc2cdfc9 /src/lib/elementary
parentea531d1c4dd767a8895baf8d8bdd113b8a96d76b (diff)
efl_ui_bg: disable preloading of the internal image
Summary: preloading is elm_image feature. it is better to disable preloading for elm_bg becuase there is no way to disable preloading of internal image in elm_bg. If API user want to use preloaded image, elm_image is recommended instead of elm_bg. Test Plan: elm_bg_file_set with big image. Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11898
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_bg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_bg.c b/src/lib/elementary/efl_ui_bg.c
index 51b12158db..56ccdbd72f 100644
--- a/src/lib/elementary/efl_ui_bg.c
+++ b/src/lib/elementary/efl_ui_bg.c
@@ -187,7 +187,11 @@ elm_bg_load_size_set(Evas_Object *obj, int w, int h)
187EAPI Eina_Bool 187EAPI Eina_Bool
188elm_bg_file_set(Eo *obj, const char *file, const char *group) 188elm_bg_file_set(Eo *obj, const char *file, const char *group)
189{ 189{
190 return efl_file_simple_load((Eo *) obj, file, group); 190 EFL_UI_BG_DATA_GET_OR_RETURN_VAL(obj, sd, EINA_FALSE);
191 Eina_Bool ret = efl_file_simple_load((Eo *) obj, file, group);
192 if (ret) elm_image_preload_disabled_set(sd->img, EINA_TRUE);
193
194 return ret;
191} 195}
192 196
193EOLIAN static Eina_Error 197EOLIAN static Eina_Error