Enlightenment CVS committal

Author  : moom
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/bin


Modified Files:
        etk_iconbox_test.c 


Log Message:
* [Iconbox] Add functions to change the label or the image of an icon
* [Iconbox] Models can now keep the aspect ratio of the icon, and expand 
it if the image is too small


===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_iconbox_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- etk_iconbox_test.c  8 Apr 2006 11:15:58 -0000       1.2
+++ etk_iconbox_test.c  9 Apr 2006 12:36:03 -0000       1.3
@@ -13,7 +13,10 @@
    
"/home/simon/etk/data/icons/default/icons/48x48/mimetypes/image-x-generic.png",
    
"/home/simon/etk/data/icons/default/icons/48x48/mimetypes/video-x-generic.png",
    "/home/simon/etk/data/icons/default/icons/48x48/mimetypes/text-html.png",
-   
"/home/simon/etk/data/icons/default/icons/48x48/mimetypes/application-x-executable.png"
+   
"/home/simon/etk/data/icons/default/icons/48x48/mimetypes/application-x-executable.png",
+   "/home/simon/etk/data/themes/default/images/entry.png",
+   "/home/simon/etk/data/themes/default/images/scrollbar_button_up1.png",
+   "/home/simon/etk/data/themes/default/images/scrollbar_vdrag2.png"
 };
 static int _etk_test_iconbox_num_icon_filenames = 
sizeof(_etk_test_iconbox_icon_filenames) / sizeof(char *);
 
@@ -42,7 +45,7 @@
    /* Create a new iconbox model: mini view */
    mini_model = etk_iconbox_model_new(ETK_ICONBOX(iconbox));
    etk_iconbox_model_geometry_set(mini_model, 150, 20, 2, 2);
-   etk_iconbox_model_icon_geometry_set(mini_model, 0, 0, 16, 16);
+   etk_iconbox_model_icon_geometry_set(mini_model, 0, 0, 16, 16, ETK_FALSE, 
ETK_TRUE);
    etk_iconbox_model_label_geometry_set(mini_model, 20, 0, 130, 16, 0.0, 0.5);
    //etk_iconbox_current_model_set(ETK_ICONBOX(iconbox), mini_model);
    




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to