Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_background.c 


Log Message:
Just strip the extension once in the beginning as we may use it in two places.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_background.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -3 -r1.52 -r1.53
--- e_int_config_background.c   4 Jun 2006 13:57:27 -0000       1.52
+++ e_int_config_background.c   5 Jun 2006 03:05:29 -0000       1.53
@@ -481,6 +481,7 @@
    evas = e_win_evas_get(cfd->dia->win);
    
    file = (char *)ecore_file_get_file((char *)path);
+   noext = ecore_file_strip_ext(file);
    if (event == ECORE_FILE_EVENT_CREATED_FILE) 
      {
        if (e_util_edje_collection_exists((char *)path, "desktop/background")) 
@@ -489,14 +490,11 @@
               ic = e_thumb_generate_begin((char *)path, 48, 48, evas, &ic, 
NULL, NULL);
             else
               ic = e_thumb_evas_object_get((char *)path, evas, 48, 48, 1);
-            e_widget_ilist_append(il, ic, ecore_file_strip_ext(file), 
_ilist_cb_bg_selected, cfd, (char *)path);
+            e_widget_ilist_append(il, ic, noext, _ilist_cb_bg_selected, cfd, 
(char *)path);
          }
      }
    else if (event == ECORE_FILE_EVENT_DELETED_FILE) 
-     {
-       noext = ecore_file_strip_ext(file);
-       e_widget_ilist_remove_label(il, noext);
-     }
+     e_widget_ilist_remove_label(il, noext);
 }
 
 static int




_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to