summaryrefslogtreecommitdiff
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
parent9b2980e1b1bd1d7fd16c34b8f96b14a782926447 (diff)
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,
544EOLIAN static void 544EOLIAN static void
545_efl_ui_image_efl_image_smooth_scale_set(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd, Eina_Bool smooth) 545_efl_ui_image_efl_image_smooth_scale_set(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd, Eina_Bool smooth)
546{ 546{
547 if (sd->edje) return; 547 sd->smooth = smooth;
548
549 evas_object_image_smooth_scale_set(sd->img, smooth); 548 evas_object_image_smooth_scale_set(sd->img, smooth);
550} 549}
551 550
552EOLIAN static Eina_Bool 551EOLIAN static Eina_Bool
553_efl_ui_image_efl_image_smooth_scale_get(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd) 552_efl_ui_image_efl_image_smooth_scale_get(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd)
554{ 553{
555 if (sd->edje) return EINA_FALSE; 554 return sd->smooth;
556
557 return evas_object_image_smooth_scale_get(sd->img);
558} 555}
559 556
560static Eina_Bool 557static Eina_Bool