From: suxia li <suxia.li@samsung.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 25 Mar 2011 04:33:51 +0000 (04:33 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 25 Mar 2011 04:33:51 +0000 (04:33 +0000)
Subject: [E-devel] Patch for photocam elm_photocam_file_set

hello, i made a patch for photocam, because i found a bug that
sometimes grid_clearall is done after image preload process, but it
should be done before image preload process, otherwise, only low
quality image is loaded.
Please have a check, thanks~

git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@58083 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_photocam.c

index 78042ad..15014e2 100644 (file)
@@ -1178,6 +1178,8 @@ elm_photocam_file_set(Evas_Object *obj, const char *file)
    int w, h;
    if (!wd) return EVAS_LOAD_ERROR_GENERIC;
    if (!eina_stringshare_replace(&wd->file, file)) return EVAS_LOAD_ERROR_NONE;
+   grid_clearall(obj);
+   
    evas_object_hide(wd->img);
    evas_object_image_smooth_scale_set(wd->img, (wd->nosmooth == 0));
    evas_object_image_file_set(wd->img, NULL, NULL);
@@ -1200,7 +1202,6 @@ elm_photocam_file_set(Evas_Object *obj, const char *file)
    evas_object_image_file_set(wd->img, wd->file, NULL);
    evas_object_image_preload(wd->img, 0);
    wd->main_load_pending = 1;
-   grid_clearall(obj);
    if (wd->calc_job) ecore_job_del(wd->calc_job);
    wd->calc_job = ecore_job_add(_calc_job, wd);
    evas_object_smart_callback_call(obj, "load", NULL);