Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/icon_theme
Modified Files:
ewl_icon_theme.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/icon_theme/ewl_icon_theme.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_icon_theme.c 8 Dec 2006 02:52:59 -0000 1.2
+++ ewl_icon_theme.c 13 Dec 2006 07:18:59 -0000 1.3
@@ -302,7 +302,7 @@
for ( ; icons[ewl_icon_theme_pos] != NULL;
ewl_icon_theme_pos++, count ++)
{
- const char *path;
+ const char *path, *key;
if (count >= EWL_ICON_THEME_PER_LOOP)
{
@@ -312,10 +312,10 @@
path = ewl_icon_theme_icon_path_get(icons[ewl_icon_theme_pos],
EWL_ICON_SIZE_MEDIUM);
-
- o = ewl_icon_simple_new();
- if (path) ewl_icon_image_set(EWL_ICON(o), path,
+ key = ewl_icon_theme_icon_key_get(path,
icons[ewl_icon_theme_pos]);
+ o = ewl_icon_simple_new();
+ if (path) ewl_icon_image_set(EWL_ICON(o), path, key);
ewl_icon_label_set(EWL_ICON(o), icons[ewl_icon_theme_pos]);
ewl_container_child_append(EWL_CONTAINER(fbox), o);
ewl_widget_show(o);
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs