E CVS: proto mekius

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
README configure.in 


Log Message:
Update versions

===
RCS file: /cvs/e/e17/proto/empower/README,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- README  1 Jun 2007 04:20:09 -   1.5
+++ README  1 Jun 2007 06:52:43 -   1.6
@@ -1,5 +1,5 @@
 Empower - A graphical sudo tool based on the Enlightenment Foundation Libraries
-Version 1.0
+Version 1.5
 
 Usage: 
 Sudo: empower [SUDO OPTIONS] [program] [PROGRAM OPTIONS] [EWL OPTIONS]
===
RCS file: /cvs/e/e17/proto/empower/configure.in,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- configure.in1 Jun 2007 04:39:51 -   1.10
+++ configure.in1 Jun 2007 06:52:43 -   1.11
@@ -4,7 +4,7 @@
 rm -f config.cache
 
 AC_INIT(configure.in)
-AM_INIT_AUTOMAKE(empower, 0.2.0)
+AM_INIT_AUTOMAKE(empower, 1.5.0)
 AM_CONFIG_HEADER(src/bin/config.h)
 
 AC_ISC_POSIX



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
empower_cb_ewl.c 


Log Message:
Exit with code 0 when exiting through normal means instead of -1

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_cb_ewl.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- empower_cb_ewl.c1 Jun 2007 04:20:09 -   1.8
+++ empower_cb_ewl.c1 Jun 2007 06:22:58 -   1.9
@@ -10,7 +10,7 @@
{
ewl_widget_destroy(EWL_WIDGET(win));
ewl_main_quit();
-   exit(-1);
+   exit(0);
}
else
{
@@ -73,7 +73,7 @@
ewl_widget_destroy(EWL_WIDGET(win));
ewl_main_quit();

-   exit(-1);
+   exit(0);
 }
 
 void reveal_cb(Ewl_Widget *w, void *event, void *data)
@@ -111,7 +111,7 @@
if((ev-exit_code))
{
ewl_main_quit();
-   exit(-1);
+   exit(0);
}
else if(mode == SUDOPROG)
{
@@ -148,5 +148,5 @@
 {  
ewl_main_quit();

-   exit(-1);
+   exit(0);
 }



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower/src/bin/ewl


Modified Files:
Makefile.am 


Log Message:
Missed uninstall hook to remove symlink.

===
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- Makefile.am 1 Jun 2007 04:39:51 -   1.6
+++ Makefile.am 1 Jun 2007 07:21:09 -   1.7
@@ -37,6 +37,9 @@
 $(LN_S) empower empower-askpass
 endif 
 
+uninstall-hook:
+   rm -f $(DESTDIR)$(bindir)/empower-askpass
+
 EXTRA_DIST = 
 
 MAINTAINERCLEANFILES = Makefile.in config.h.in



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: proto mekius

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir : e17/proto/empower


Modified Files:
Makefile.am 


Log Message:
Missed uninstall hook to remove symlink.

===
RCS file: /cvs/e/e17/proto/empower/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- Makefile.am 8 Jun 2006 05:02:06 -   1.2
+++ Makefile.am 1 Jun 2007 07:21:09 -   1.3
@@ -14,4 +14,4 @@
config.h.in config.sub configure install-sh \
   ltconfig ltmain.sh missing mkinstalldirs \
   stamp-h.in  empower.spec compile depcomp \
-  debian/changelog
+  debian/changelog empower-*.tar.gz



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: apps/exhibit codewarrior

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : apps/exhibit

Dir : e17/apps/exhibit/src/bin


Modified Files:
exhibit.h exhibit_file.c exhibit_image.c exhibit_main.c 
exhibit_main.h exhibit_menus.c exhibit_menus.h 
exhibit_options.c exhibit_thumb.c 


Log Message:
patch by Brian 'morlenxus' Miculcy [EMAIL PROTECTED]:

- 'options' menu entry moved from 'file' to 'edit' menu
- 'set as wallpaper' menu entry moved from 'edit' to file' menu
- new menu entry 'fullscreen' added to view menu
- new option for showing all filetypes
- new option for showing hidden files and directories
- use %s when running command
- new commandline argument 's'/'--slideshow', starts the slideshow on
application start
- fixed segfault on menu 'quit'
- toggle fullscreen on double click at image
- fit to window/zoom one to one is automatically switching on middle mouse
click at image
- show e17 background edje thumbnails again
- clear image view on directory change



===
RCS file: /cvs/e/e17/apps/exhibit/src/bin/exhibit.h,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -3 -r1.41 -r1.42
--- exhibit.h   3 May 2007 10:30:41 -   1.41
+++ exhibit.h   1 Jun 2007 10:19:06 -   1.42
@@ -103,6 +103,8 @@
int default_view;   
int default_sort;
int default_sort_tmp;
+   int show_all_filetypes;
+   int list_hidden;
int monitor_focus;

int last_w;
@@ -122,6 +124,8 @@
Etk_Widget *comments_visible;
Etk_Widget *rotate_autosave;
Etk_Widget *default_sort;
+   Etk_Widget *show_all_filetypes;
+   Etk_Widget *list_hidden;
Etk_Widget *monitor_focus;
Etk_Widget *dl_path;
Etk_Combobox_Item *sort_date;
===
RCS file: /cvs/e/e17/apps/exhibit/src/bin/exhibit_file.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- exhibit_file.c  10 Mar 2007 04:30:29 -  1.16
+++ exhibit_file.c  1 Jun 2007 10:19:06 -   1.17
@@ -151,7 +151,7 @@

for (l = groups; l; l = l-next)
  {
-   if (!strcmp(l-data, desktop/background))
+   if (!strcmp(l-data, e/desktop/background))
  {
 val = 1;
 break;
===
RCS file: /cvs/e/e17/apps/exhibit/src/bin/exhibit_image.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- exhibit_image.c 3 May 2007 16:21:53 -   1.48
+++ exhibit_image.c 1 Jun 2007 10:19:06 -   1.49
@@ -73,16 +73,23 @@

if(ev-button == 1)
  {
-   e-mouse.down = 1;
-   e-mouse.x = ev-canvas.x;
-   e-mouse.y = ev-canvas.y;
+   if (ev-flags != ETK_MOUSE_DOUBLE_CLICK)
+ {
+e-mouse.down = 1;
+e-mouse.x = ev-canvas.x;
+e-mouse.y = ev-canvas.y;

-etk_toplevel_pointer_push(ETK_TOPLEVEL(e-win), ETK_POINTER_MOVE);
+ etk_toplevel_pointer_push(ETK_TOPLEVEL(e-win), ETK_POINTER_MOVE);
+ }
+   else
+  _ex_main_window_fullscreen_toggle(e);
  }
else if(ev-button == 2)
  {
-   /* TODO Make this function configurable in options */
-   _ex_tab_current_fit_to_window(e);
+   if (e-cur_tab-fit_window)
+  _ex_tab_current_zoom_one_to_one(e);
+   else   
+  _ex_tab_current_fit_to_window(e);
  }
else if(ev-button == 3)
  {
===
RCS file: /cvs/e/e17/apps/exhibit/src/bin/exhibit_main.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -3 -r1.102 -r1.103
--- exhibit_main.c  4 May 2007 09:45:48 -   1.102
+++ exhibit_main.c  1 Jun 2007 10:19:06 -   1.103
@@ -147,7 +147,7 @@
  {
/* can we do this without the size request? it doesnt look good */
etk_widget_size_request_set(ETK_WIDGET(e-cur_tab-image), 800, 600);   
-   etk_image_set_from_edje(ETK_IMAGE(e-cur_tab-image), image, 
desktop/background);
+   etk_image_set_from_edje(ETK_IMAGE(e-cur_tab-image), image, 
e/desktop/background);
  }
else
  {
@@ -208,6 +208,7 @@
DIR *dir;
struct dirent *dir_entry;
 
+   _ex_main_image_unset();
chdir(e-cur_tab-dir);

if (update == EX_TREE_UPDATE_ALL || update == EX_TREE_UPDATE_DIRS)
@@ -245,8 +246,12 @@
char imagereal[PATH_MAX];
struct stat st;
 
-/* Do not include hidden files */
-   if (dir_entry-d_name[0] == '.')
+/* Do not include current dir/above dir */
+   if ((!strcmp (dir_entry-d_name, .)) || (!strcmp (dir_entry-d_name, 
..)))
+ continue;
+
+/* Show hidden files and directories? */
+   if ((!e-options-list_hidden)  (dir_entry-d_name[0] == '.'))
  continue;
 
snprintf(image, PATH_MAX, %s, dir_entry-d_name);
@@ -269,7 +274,7 @@
if (update 

E CVS: www inc

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : inc
Project : web
Module  : www

Dir : web/www/p/about/libs/etk


Modified Files:
en-body 


Log Message:
small changes to the text due to complains

===
RCS file: /cvs/e/web/www/p/about/libs/etk/en-body,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- en-body 31 May 2007 22:06:45 -  1.5
+++ en-body 1 Jun 2007 14:21:51 -   1.6
@@ -6,11 +6,10 @@
 h1Etk/h1
 /center
 span class=contentmainbr/span
-pspan class=contentmainETK is another toolkit library based on 
-EFL.
-Its API is very similar to GTK, which makes it faster to learn if you're 
-already familiar with GTK. It 
-replaces a Glade library called Enhance./span/p
+pspan class=contentmainETK is a toolkit library based on 
+EFL. Its API is very similar to GTK, which makes it faster to learn if 
+you're already familiar with GTK. It replaces a Glade library called 
+Enhance./span/p
 pHere's an example of Etk usage:/p
 div class=fragment
 pre



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/epsilon ningerso

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/epsilon

Dir : e17/libs/epsilon/src/lib


Modified Files:
epsilon_thumb.c 


Log Message:
Don't exit in the client lib, return an error status.

===
RCS file: /cvs/e/e17/libs/epsilon/src/lib/epsilon_thumb.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- epsilon_thumb.c 20 Apr 2007 04:03:40 -  1.9
+++ epsilon_thumb.c 1 Jun 2007 18:53:34 -   1.10
@@ -299,7 +299,7 @@
if (!epsilon_server) {
if (!epsilon_client_connect()) {
fprintf(stderr, Failed to connect to server\n);
-   exit(0);
+   return NULL;
}
}
 



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: apps/ephoto titan

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : titan
Project : e17
Module  : apps/ephoto

Dir : e17/apps/ephoto/src/bin


Modified Files:
ephoto_main.c ephoto_normal_view.c 


Log Message:
Various cleanups and fixes.

===
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_main.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- ephoto_main.c   31 May 2007 07:11:28 -  1.40
+++ ephoto_main.c   1 Jun 2007 21:46:19 -   1.41
@@ -58,7 +58,6 @@
 {
ewl_notebook_visible_page_set(EWL_NOTEBOOK(em-main_nb), em-main_vbox);
ewl_widget_disable(em-smi);
-   ecore_dlist_goto_first(em-images);
 }
 
 /*Update the images based on the current tab*/
@@ -169,12 +168,9 @@
 
add_list_view(em-view_box);
 
-   em-toolbar = ewl_hbox_new();
-   ewl_box_spacing_set(EWL_BOX(em-toolbar), 5);
+   em-toolbar = add_box(vbox, EWL_ORIENTATION_HORIZONTAL, 5);
ewl_object_alignment_set(EWL_OBJECT(em-toolbar), 
EWL_FLAG_ALIGN_CENTER);
ewl_object_fill_policy_set(EWL_OBJECT(em-toolbar), 
EWL_FLAG_FILL_SHRINK);
-   ewl_container_child_append(EWL_CONTAINER(vbox), em-toolbar);
-   ewl_widget_show(em-toolbar);
 
 button = add_button(em-toolbar, NULL, 
PACKAGE_DATA_DIR /images/normal_view.png, 
@@ -248,12 +244,14 @@
em-db = ephoto_db_init();
 
em-current_album = strdup(_(Complete Library));
-   em-current_directory = strdup(getcwd(buf, PATH_MAX));
+
+   getcwd(buf, PATH_MAX);
+   buf[sizeof(buf)-1] = '\0';
+   em-current_directory = strdup(buf);
 
populate_albums(NULL, NULL, NULL);
ewl_callback_append(em-browser, EWL_CALLBACK_VALUE_CHANGED, 
update_view, NULL);
-
return;
 }
 
@@ -275,14 +273,15 @@
{
ecore_list_destroy(em-albums);
}
-   if (!ecore_list_is_empty(em-images))
-   {
-   ecore_dlist_destroy(em-images);
-   }
 
em-albums = ecore_list_new();
em-albums = ephoto_db_list_albums(em-db);
ewl_mvc_data_set(EWL_MVC(em-atree), em-albums);
+
+if (!ecore_dlist_is_empty(em-images))
+{
+ecore_dlist_destroy(em-images);
+}

em-images = ecore_dlist_new();
em-images = ephoto_db_list_images(em-db, em-current_album);
@@ -297,19 +296,25 @@
{
thumb = add_image(em-fbox, imagef, 1, 
freebox_image_clicked, NULL);
-   ewl_image_constrain_set(EWL_IMAGE(thumb), 
-   
ewl_range_value_get(EWL_RANGE(em-fthumb_size))); 
+   ewl_image_constrain_set(EWL_IMAGE(thumb), 81); 
ewl_object_alignment_set(EWL_OBJECT(thumb), 
EWL_FLAG_ALIGN_CENTER);
ewl_widget_name_set(thumb, imagef);
}
ecore_dlist_next(em-images);
 }
-   ewl_widget_configure(em-fbox);
-   ecore_dlist_goto_first(em-images);
-ewl_mvc_data_set(EWL_MVC(em-ltree), em-images);
+   ewl_widget_configure(em-fbox_vbox);
+   
+   ewl_mvc_data_set(EWL_MVC(em-ltree), em-images);
ecore_dlist_goto_first(em-images);
 
+   if (ecore_dlist_current(em-images))
+{
+ewl_image_file_path_set(EWL_IMAGE(em-simage),
+ecore_dlist_current(em-images));
+}
+
+
return;
 }
 
@@ -356,8 +361,7 @@
{
thumb = add_image(em-fbox, imagef, 1, 
freebox_image_clicked, NULL);
-   ewl_image_size_set(EWL_IMAGE(thumb), 
-   
ewl_range_value_get(EWL_RANGE(em-fthumb_size)), 
+   ewl_image_constrain_set(EWL_IMAGE(thumb), 

ewl_range_value_get(EWL_RANGE(em-fthumb_size)));
ewl_object_alignment_set(EWL_OBJECT(thumb), 
EWL_FLAG_ALIGN_CENTER);
@@ -365,10 +369,16 @@
}
ecore_dlist_next(em-images);
}
-   ewl_widget_configure(em-fbox);
-   ecore_dlist_goto_first(em-images);
+   ewl_widget_configure(em-fbox_vbox);
+
ewl_mvc_data_set(EWL_MVC(em-ltree), em-images);
ecore_dlist_goto_first(em-images); 
+
+   if (ecore_dlist_current(em-images)) 
+   {
+   ewl_image_file_path_set(EWL_IMAGE(em-simage), 
+   ecore_dlist_current(em-images));
+   }
 
return;
 } 
===
RCS file: 

E CVS: apps/e ravenlock

2007-06-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : ravenlock
Project : e17
Module  : apps/e

Dir : e17/apps/e/src/bin


Modified Files:
e_int_config_theme.c 


Log Message:
Should be more robust with respect to Assign, Clear, and Clear All.  
Additionally I have added (as best I could) previews of each individual 
category/part.  In the absence of a suitable preview, I display the theme 
background.

===
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_theme.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -3 -r1.52 -r1.53
--- e_int_config_theme.c30 May 2007 11:51:06 -  1.52
+++ e_int_config_theme.c2 Jun 2007 03:22:32 -   1.53
@@ -12,6 +12,7 @@
 static int  _advanced_apply_data (E_Config_Dialog *cfd, 
E_Config_Dialog_Data *cfdata);
 static Evas_Object *_advanced_create_widgets (E_Config_Dialog *cfd, Evas 
*evas, E_Config_Dialog_Data *cfdata);
 static Evas_List   *_get_theme_categories_list(); 
+static Evas_List   *_get_parts_list(); 
 
 struct _E_Config_Dialog_Data
 {
@@ -32,6 +33,7 @@
Evas_Object *o_files_ilist;
int personal_file_count;
Evas_List   *theme_list;
+   Evas_List   *parts_list;

/* Dialog */
E_Win *win_import;   
@@ -320,6 +322,7 @@
  }
   
cfdata-theme_list = _get_theme_categories_list(); 
+   cfdata-parts_list = _get_parts_list();
 
snprintf(path, sizeof(path), %s/data/themes, e_prefix_data_get());
if (!strncmp(cfdata-theme, path, strlen(path)))
@@ -501,6 +504,45 @@
 }
 
 static Evas_List *
+_get_parts_list()
+{
+   Evas_List *parts = NULL;
+
+   /* 
+* TODO: Those parts with ZZZ, are the ones I could not find a suitable
+* part to use as its preview.
+*/
+   parts = evas_list_append(parts, strdup(about:e/widgets/about/main));
+   parts = evas_list_append(parts, 
strdup(borders:e/widgets/border/default/border));
+   parts = evas_list_append(parts, strdup(background:e/desktop/background));
+   parts = evas_list_append(parts, 
strdup(configure:e/widgets/configure/main));
+   parts = evas_list_append(parts, strdup(dialog:e/widgets/dialog/main));
+   parts = evas_list_append(parts, strdup(dnd:ZZZ));
+   parts = evas_list_append(parts, strdup(error:e/error/main));
+   parts = evas_list_append(parts, strdup(exebuf:e/widgets/exebuf/main));
+   parts = evas_list_append(parts, strdup(fileman:ZZZ));
+   parts = evas_list_append(parts, strdup(gadman:e/gadman/control));
+   parts = evas_list_append(parts, strdup(icons:ZZZ));
+   parts = evas_list_append(parts, strdup(menus:ZZZ));
+   parts = evas_list_append(parts, strdup(modules:ZZZ));
+   parts = evas_list_append(parts, 
strdup(modules/pager:e/widgets/pager/popup));
+   parts = evas_list_append(parts, strdup(modules/ibar:ZZZ));
+   parts = evas_list_append(parts, strdup(modules/ibox:ZZZ));
+   parts = evas_list_append(parts, 
strdup(modules/clock:e/modules/clock/main));
+   parts = evas_list_append(parts, 
strdup(modules/battery:e/modules/battery/main));
+   parts = evas_list_append(parts, 
strdup(modules/cpufreq:e/modules/cpufreq/main));
+   parts = evas_list_append(parts, 
strdup(modules/start:e/modules/start/main));
+   parts = evas_list_append(parts, 
strdup(modules/temperature:e/modules/temperature/main));
+   parts = evas_list_append(parts, strdup(pointer:e/pointer));
+   parts = evas_list_append(parts, strdup(shelf:e/shelf/default/base));
+   parts = evas_list_append(parts, strdup(transitions:ZZZ));
+   parts = evas_list_append(parts, strdup(widgets:ZZZ));
+   parts = evas_list_append(parts, strdup(winlist:e/widgets/winlist/main));
+
+   return parts;
+}
+
+static Evas_List *
 _get_theme_categories_list() 
 {
Evas_List *themes, *tcl = NULL;
@@ -587,6 +629,60 @@
return tcl;
 }
 
+static char *
+_files_ilist_nth_label_to_file(void *data, int n)
+{
+   E_Config_Dialog_Data *cfdata;
+   char file[1024];
+
+   cfdata = data;
+   if (!cfdata) return NULL;
+   if (!cfdata-o_files_ilist) return NULL;
+
+   if (n  cfdata-personal_file_count)
+ snprintf(file, sizeof(file), %s/data/themes/%s.edj, 
+  e_prefix_data_get(), 
e_widget_ilist_nth_label_get(cfdata-o_files_ilist, n));
+   else
+ snprintf(file, sizeof(file), %s/.e/e/themes/%s.edj, 
+  e_user_homedir_get(), 
e_widget_ilist_nth_label_get(cfdata-o_files_ilist, n));
+
+   return strdup(file);
+}
+
+static void
+_preview_set(void *data)
+{
+   E_Config_Dialog_Data *cfdata;
+   const char *theme;
+   char c_label[128];
+   int n, ret = 0;
+   Evas_List *p;
+
+   cfdata = data;
+   if (!cfdata) return;
+
+   n = e_widget_ilist_selected_get(cfdata-o_files_ilist);
+   theme = _files_ilist_nth_label_to_file(cfdata, n);
+   snprintf(c_label, sizeof(c_label), %s:, 
+e_widget_ilist_selected_label_get(cfdata-o_categories_ilist));
+   if (theme) 
+ {
+   p = cfdata-parts_list;
+   while (p)
+ {
+if (strstr((char *)(p-data), c_label))
+  break;
+