From: Enlightenment S. <no-...@en...> - 2011-08-25 12:13:22
|
Log: clouseau: Added aspect ratio. Author: tasn Date: 2011-08-25 05:13:16 -0700 (Thu, 25 Aug 2011) New Revision: 62812 Trac: http://trac.enlightenment.org/e/changeset/62812 Modified: trunk/clouseau/src/lib/ui/obj_information.c Modified: trunk/clouseau/src/lib/ui/obj_information.c =================================================================== --- trunk/clouseau/src/lib/ui/obj_information.c 2011-08-25 12:13:08 UTC (rev 62811) +++ trunk/clouseau/src/lib/ui/obj_information.c 2011-08-25 12:13:16 UTC (rev 62812) @@ -227,6 +227,12 @@ tit->string = eina_stringshare_add(buf); main_tit->children = eina_list_append(main_tit->children, tit); + evas_object_size_hint_request_get(obj, &w, &h); + snprintf(buf, sizeof(buf), "Aspect: %d %d", w, h); + tit = calloc(1, sizeof(*tit)); + tit->string = eina_stringshare_add(buf); + main_tit->children = eina_list_append(main_tit->children, tit); + /* Handle color */ { int r, g, b, a; |