Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_theme.c 


Log Message:
Slight speed up for theme-thumb loading. Fix for 'Selecting a theme in the list 
that is already set did not disable apply/ok buttons'
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_config_theme.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_int_config_theme.c        14 Jan 2006 16:05:35 -0000      1.11
+++ e_int_config_theme.c        19 Jan 2006 00:57:27 -0000      1.12
@@ -108,7 +108,6 @@
    if (cfdata->current_theme) 
      {
        tmp = ecore_file_get_file(d->file);
-       tmp = ecore_file_strip_ext(tmp);
        if (!strcmp(tmp, cfdata->current_theme)) 
          {
             e_dialog_button_disable_num_set(d->cfd->dia, 0, 1);
@@ -180,8 +179,12 @@
                       Evas_Object *o = NULL;
                       char *noext;
                       E_Cfg_Theme_Data *cb_data;
-                      
-                      o = e_thumb_generate_begin(fulltheme, 48, 48, 
cfd->dia->win->evas, &o, NULL, NULL);
+
+                      if (!e_thumb_exists(fulltheme))
+                        o = e_thumb_generate_begin(fulltheme, 48, 48, 
cfd->dia->win->evas, &o, NULL, NULL);
+                      else
+                        o = e_thumb_evas_object_get(fulltheme, 
cfd->dia->win->evas, 48, 48, 1);
+
                       noext = ecore_file_strip_ext(themefile);
                       
                       cb_data = E_NEW(E_Cfg_Theme_Data, 1);




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to