On Wed, May 4, 2011 at 4:13 PM, Atton Jonathan <[email protected]> wrote:
> wouha now Mystrale is here too !

Yeah ! It's a great test ! Maybe malloc will be afraid next time
raster start elementary_test :-)

> 2011/5/4 Enlightenment SVN <[email protected]>
>
>> Log:
>> elementary: fix aspect ratio of thumbnail.
>>
>>
>> Author:       cedric
>> Date:         2011-05-04 07:11:12 -0700 (Wed, 04 May 2011)
>> New Revision: 59192
>> Trac:         http://trac.enlightenment.org/e/changeset/59192
>>
>> Modified:
>>  trunk/elementary/src/bin/test_thumb.c trunk/elementary/src/lib/elm_thumb.c
>>
>> Modified: trunk/elementary/src/bin/test_thumb.c
>> ===================================================================
>> --- trunk/elementary/src/bin/test_thumb.c       2011-05-04 13:53:22 UTC
>> (rev 59191)
>> +++ trunk/elementary/src/bin/test_thumb.c       2011-05-04 14:11:12 UTC
>> (rev 59192)
>> @@ -9,7 +9,7 @@
>>    Evas_Object *win, *bg, *sc, *tb, *th;
>>    int i, j, n;
>>    char buf[PATH_MAX];
>> -   const char *img[9] =
>> +   const char *img[11] =
>>      {
>>         "panel_01.jpg",
>>         "plant_01.jpg",
>> @@ -20,6 +20,8 @@
>>         "sky_03.jpg",
>>         "sky_04.jpg",
>>         "wood_01.jpg",
>> +       "mystrale.jpg",
>> +       "mystrale_2.jpg"
>>      };
>>
>>    elm_need_ethumb();
>> @@ -44,7 +46,7 @@
>>              th = elm_thumb_add(win);
>>              snprintf(buf, sizeof(buf), "%s/images/%s", PACKAGE_DATA_DIR,
>>                       img[n]);
>> -             n = (n + 1) % 9;
>> +             n = (n + 1) % 11;
>>              elm_thumb_file_set(th, buf, img[n]);
>>              evas_object_size_hint_weight_set(th, EVAS_HINT_EXPAND,
>>                                               EVAS_HINT_EXPAND);
>>
>> Modified: trunk/elementary/src/lib/elm_thumb.c
>> ===================================================================
>> --- trunk/elementary/src/lib/elm_thumb.c        2011-05-04 13:53:22 UTC
>> (rev 59191)
>> +++ trunk/elementary/src/lib/elm_thumb.c        2011-05-04 14:11:12 UTC
>> (rev 59192)
>> @@ -172,7 +172,12 @@
>>  _thumb_ready(Widget_Data *wd, const char *thumb_path, const char
>> *thumb_key)
>>  {
>>    Evas_Coord mw, mh;
>> +   Evas_Coord aw, ah;
>>
>> +   evas_object_image_size_get(wd->view, &aw, &ah);
>> +   evas_object_size_hint_aspect_set(wd->view,
>> +                                   EVAS_ASPECT_CONTROL_BOTH,
>> +                                   aw, ah);
>>    edje_object_part_swallow(wd->frame, "elm.swallow.content", wd->view);
>>    edje_object_size_min_get(wd->frame, &mw, &mh);
>>    edje_object_size_min_restricted_calc(wd->frame, &mw, &mh, mw, mh);
>>
>>
>>
>> ------------------------------------------------------------------------------
>> WhatsUp Gold - Download Free Network Management Software
>> The most intuitive, comprehensive, and cost-effective network
>> management toolset available today.  Delivers lowest initial
>> acquisition cost and overall TCO of any competing solution.
>> http://p.sf.net/sfu/whatsupgold-sd
>> _______________________________________________
>> enlightenment-svn mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>>
>
>
>
> --
> Regards.
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>



-- 
Cedric BAIL

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to