elm image - store smooth scale var in object as intended
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 3 Aug 2016 09:24:16 +0000 (18:24 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 3 Aug 2016 09:27:57 +0000 (18:27 +0900)
this fixesa bug reported by davemds and kuuko in python bindings test
suite where setting smooth flag != getting it right after.

src/lib/elementary/efl_ui_image.c

index 8bf16a8..ba52cc9 100644 (file)
@@ -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