Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests/text_editor


Modified Files:
        ewl_text_editor.c 


Log Message:
- change ewl_theme_path() get to return const
- start working on default icons.
  - the ewl_icon_theme_icon_path_get() function will return the current theme
    .edj file if the icon is not found
  - you can call ewl_icon_theme_icon_key_get() to retrieve the key the icon
    should be looked up under. If this is in the icon theme it will just
    return the icon again otherwise it will return the EWL theme group name 
    for the icon 
  - currently only folders have a default icon. we need to decide what we
    want in the default theme for icons

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/text_editor/ewl_text_editor.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_text_editor.c   16 Nov 2006 15:44:39 -0000      1.3
+++ ewl_text_editor.c   13 Dec 2006 07:18:59 -0000      1.4
@@ -105,10 +105,14 @@
 
                for (i = 0; format[i].icon != NULL; i++)
                {
+                       const char *path, *key;
+
+                       path = ewl_icon_theme_icon_path_get(format[i].icon,
+                                                       EWL_ICON_SIZE_SMALL);
+                       key = ewl_icon_theme_icon_key_get(path, format[i].icon);
+
                        o = ewl_button_new();
-                       ewl_button_image_set(EWL_BUTTON(o), 
-                               ewl_icon_theme_icon_path_get(format[i].icon, 
EWL_ICON_SIZE_SMALL),
-                               format[i].icon);
+                       ewl_button_image_set(EWL_BUTTON(o), path, key);
                        ewl_container_child_append(EWL_CONTAINER(hbox), o);
                        ewl_object_fill_policy_set(EWL_OBJECT(o), 
EWL_FLAG_FILL_SHRINK);
                        ewl_callback_append(o, EWL_CALLBACK_CLICKED, 
format[i].cb, NULL);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to