aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-03 18:24:16 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-03 18:27:57 +0900
commitf23788dcb0c2b969f5312a3d72a8e0874952e64f (patch)
tree37a8335308bf897928873c6e1fdbd68f31783d36
parentwidget: Fix propagation of events on hold (diff)
downloadefl-f23788dcb0c2b969f5312a3d72a8e0874952e64f.tar.gz
elm image - store smooth scale var in object as intended
this fixesa bug reported by davemds and kuuko in python bindings test suite where setting smooth flag != getting it right after.
-rw-r--r--src/lib/elementary/efl_ui_image.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c
index 8bf16a894f..ba52cc92fe 100644
--- a/src/lib/elementary/efl_ui_image.c
+++ b/src/lib/elementary/efl_ui_image.c
@@ -544,17 +544,14 @@ _efl_ui_image_edje_file_set(Evas_Object *obj,
EOLIAN static void
_efl_ui_image_efl_image_smooth_scale_set(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd, Eina_Bool smooth)
{
- if (sd->edje) return;
-
+ sd->smooth = smooth;
evas_object_image_smooth_scale_set(sd->img, smooth);
}
EOLIAN static Eina_Bool
_efl_ui_image_efl_image_smooth_scale_get(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd)
{
- if (sd->edje) return EINA_FALSE;
-
- return evas_object_image_smooth_scale_get(sd->img);
+ return sd->smooth;
}
static Eina_Bool