Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : apps/e_utils

Dir     : e17/apps/e_utils/src/bin/eapp_edit


Modified Files:
        eapp_edit_main.c 


Log Message:
- fix formatting
- make sure the icon name is strdup'd

===================================================================
RCS file: /cvs/e/e17/apps/e_utils/src/bin/eapp_edit/eapp_edit_main.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- eapp_edit_main.c    17 May 2006 22:43:32 -0000      1.43
+++ eapp_edit_main.c    25 May 2006 17:50:34 -0000      1.44
@@ -260,8 +260,8 @@
     {
         row[0] = ewl_label_new();
         ewl_label_text_set(EWL_LABEL(row[0]), keys[i].name);
-       ewl_object_fill_policy_set(EWL_OBJECT(row[0]), EWL_FLAG_FILL_NONE);
-       ewl_object_alignment_set(EWL_OBJECT(row[0]), EWL_FLAG_ALIGN_LEFT);
+        ewl_object_fill_policy_set(EWL_OBJECT(row[0]), EWL_FLAG_FILL_NONE);
+        ewl_object_alignment_set(EWL_OBJECT(row[0]), EWL_FLAG_ALIGN_LEFT);
         ewl_widget_show(row[0]);
 
         v = eapp_eet_read(ef, keys[i].key, lang);
@@ -327,16 +327,16 @@
     if (e->response == EWL_STOCK_OK)
     {
         char *icon;
-       const char *icon2;
-       char icon3[PATH_MAX];
+        const char *icon2;
+        char icon3[PATH_MAX];
        
         icon = ewl_filedialog_selected_file_get(EWL_FILEDIALOG(w));
-       icon2 = ewl_filedialog_directory_get(EWL_FILEDIALOG(w));
-       snprintf(icon3, PATH_MAX, "%s/%s", icon2, icon);
+        icon2 = ewl_filedialog_directory_get(EWL_FILEDIALOG(w));
+        snprintf(icon3, PATH_MAX, "%s/%s", icon2, icon);
 
         o = ewl_widget_name_find("icon");
-        ewl_widget_data_set(o, "file", icon3);
-       ewl_image_file_set(EWL_IMAGE(o), icon3, "");
+        ewl_widget_data_set(o, "file", strdup(icon3));
+        ewl_image_file_set(EWL_IMAGE(o), icon3, "");
     }
 
     o = ewl_widget_name_find("fd");




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to