Re: [E-devel] E SVN: davemds trunk/e/src/modules/conf_theme
IMO a screenshot thumbnail is of little use to see how your desktop would look. I suggest using a close-up of the main elements shelf, menu, window border and some widgets. A mix of what get-e.org [1] and art.gnome.org [2] do. [1] http://www0.get-e.org/Themes/E17/_images/23oz.jpg [2] http://art.gnome.org/images/thumbnails/gtk2/GTK2-Cillop-Th.png If size is an issue we can replicate art.gnome.org which takes little space and add a window border to it. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: mcalamelli trunk/PROTO/exchange/src/lib
On Fri, Dec 12, 2008 at 1:36 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: Works on Doxy: add sample code for theme_group Author: mcalamelli Date: 2008-12-12 07:36:22 -0800 (Fri, 12 Dec 2008) New Revision: 38115 Modified: trunk/PROTO/exchange/src/lib/exchange_theme_group.c trunk/PROTO/exchange/src/lib/exchange_theme_group.h Modified: trunk/PROTO/exchange/src/lib/exchange_theme_group.c === --- trunk/PROTO/exchange/src/lib/exchange_theme_group.c 2008-12-12 11:28:50 UTC (rev 38114) +++ trunk/PROTO/exchange/src/lib/exchange_theme_group.c 2008-12-12 15:36:22 UTC (rev 38115) @@ -55,6 +55,23 @@ * * Function for theme_groups. * + * Sample code + * + * @code + * Eina_List *l, *l1; + * l = exchange_theme_group_list_available(); + * printf(Available theme_groups (%d):\n, eina_list_count(l)); + * for (l1 = l; l1; l1 = eina_list_next(l1)) + * { + * if (l1-data) + * { + * Theme_Group_Data *tgd; Please consider using EINA_LIST_FOREACH(l, l1, tgd) { ... } -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Swallowing an image in an edje part
Hi devs ! I'm begining to play with edje and have difficulties to swallow an evas_object_image into an edje part swallow. I'm under the impression I have to call evas_object_image_fill_set() before swalloing the image into the edje but I must do something wrong because either my image isn't scaled to the swallowing part or I get something gray. Here is what I do : [...] my_edje = edje_object_add(evas); edje_object_file_set(my_edje, theme.edj, main); evas_object_move(my_edje, 0, 0); edje_object_size_min_get(my_edje, w ,h); evas_object_resize(my_edje, w, h); ecore_evas_resize(ecore_evas, w, h); image = evas_object_image_add(evas); evas_object_image_file_set(image, /path/to/my/image.jpg, NULL); evas_object_name_set(image, image_swallow); const Evas_Object *swallow = NULL; swallow = edje_object_part_object_get(my_edje, place_for_image); edje_object_size_min_get(swallow, w, h); evas_object_image_fill_set(image, 0, 0, w, h); edje_object_part_swallow(my_edje, place_for_image, image); [...] And the edc : collections { group { name: main; min: 131 111; max: 131 111; parts { part { name: bg; type: RECT; description { state: default 0; min:131 111; max:131 111; color: 255 255 255 255; } } part { name: image_swallow; type: SWALLOW; clip_to: bg; description { state: default 0; min: 100 100; rel1.relative: 0.15 0.07; rel2.relative: 0.91 0.95; } } [...] I should be wrong somewhere (in fact I don't like to set the min size of the swallowed part..) So, iIs there anyone to help me please ? Vincent -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Swallowing an image in an edje part
On Fri, Dec 12, 2008 at 6:07 PM, Vincent Pomageot vincent.pomag...@gmail.com wrote: Hi devs ! I'm begining to play with edje and have difficulties to swallow an evas_object_image into an edje part swallow. I'm under the impression I have to call evas_object_image_fill_set() before swalloing the image into the edje but I must do something wrong because either my image isn't scaled to the swallowing part or I get something gray. yes, this is correct, Edje will not even know the swallowed part is an image, so it will not change fill property. if you want to keep it scaled (fill == (0, 0, w, h)), then you should add an event listener for EVAS_CALLBACK_RESIZE and apply fill again. For Python I added FilledImage that will do that for you for a long time, just noticed that C still miss such a helper! So I just added to SVN (r38120): Evas_Object *evas_object_image_filled_add(Evas *e); void evas_object_image_filled_set(Evas_Object *obj, Evas_Bool setting); Evas_Bool evas_object_image_filled_get(const Evas_Object *obj); See attached file for usage example. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 #include Evas.h #include Ecore.h #include Ecore_Evas.h #include stdio.h #include stdlib.h static void on_delete(void *data, Evas *e, Evas_Object *o, void *einfo) { ecore_main_loop_quit(); } int main(int argc, char *argv[]) { Ecore_Evas *ee; Evas *e; Evas_Object *im; const char *file; int load_err; if (argc 2) { fputs(ERROR: missing image filename.\n, stderr); return -1; } file = argv[1]; evas_init(); ecore_init(); ecore_evas_init(); ee = ecore_evas_new(NULL, 0, 0, 320, 240, NULL); if (!ee) goto end; e = ecore_evas_get(ee); im = evas_object_image_filled_add(e); if (!im) goto end; evas_object_image_file_set(im, file, NULL); load_err = evas_object_image_load_error_get(im); if (load_err != EVAS_LOAD_ERROR_NONE) { fprintf(stderr, ERROR: could not load image \%s\: %d\n, file, load_err); goto end; } ecore_evas_object_associate(ee, im, 0); evas_object_event_callback_add(im, EVAS_CALLBACK_DEL, on_delete, NULL); evas_object_resize(im, 320, 240); evas_object_show(im); ecore_main_loop_begin(); end: ecore_evas_shutdown(); ecore_shutdown(); evas_shutdown(); return 0; } -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: davemds trunk/e/src/modules/conf_theme
On Fri, 12 Dec 2008 11:20:10 -0200 andres andresbl...@gmail.com babbled: IMO a screenshot thumbnail is of little use to see how your desktop would look. I suggest using a close-up of the main elements shelf, menu, window border and some widgets. A mix of what get-e.org [1] and art.gnome.org [2] do. [1] http://www0.get-e.org/Themes/E17/_images/23oz.jpg [2] http://art.gnome.org/images/thumbnails/gtk2/GTK2-Cillop-Th.png If size is an issue we can replicate art.gnome.org which takes little space and add a window border to it. that was the point of a programmatically-generated theme thumbnail where it takes obvious and common elements of a theme (wallpaper, menu, border, some widgets and a dialog with stuff in it, shelf etc.) crams them into a small preview with a fixed setup and then scales that down to maybe 1/2 res or 1/4 res. (eg a 512x512 setup thumbaniled to 128x128 0 when you browse the preview will show not the stored thumb but the full dynamic layout that was used to generate the thumb - with all animations etc.intact) -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [Patch] Ecore_Desktop fix
Hi, I know, Ecore Desktop isn't used anymore, but it still lies around in the main ecore tree and some buildsystems might still build it (so does gentoo with the current ebuilds). So I thought it might not be usefull, but it can't be bad if it at least builds without errors, so I did a quick'n'dirty fix. There are some new Eina functions in it that lacked parameters and some other small things, I think cedric let a script do this and didn't have a further look. Find the patch attached. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] Ecore_Desktop fix
On Sat, 13 Dec 2008 03:31:52 +0100 thomasg tho...@gstaedtner.net wrote: Hi, I know, Ecore Desktop isn't used anymore, but it still lies around in the main ecore tree and some buildsystems might still build it (so does gentoo with the current ebuilds). So I thought it might not be usefull, but it can't be bad if it at least builds without errors, so I did a quick'n'dirty fix. There are some new Eina functions in it that lacked parameters and some other small things, I think cedric let a script do this and didn't have a further look. Find the patch attached. A better patch would be to remove it completely. None of the code is useful anymore and efreet_desktop is far better. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel