Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/dialogs


Modified Files:
        etk_properties_dialog.c 


Log Message:
more work on properties dialog

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/dialogs/etk_properties_dialog.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- etk_properties_dialog.c     30 Jun 2007 07:04:53 -0000      1.14
+++ etk_properties_dialog.c     29 Jul 2007 09:12:49 -0000      1.15
@@ -239,7 +239,8 @@
 void etk_properties_dialog_new(Entropy_Generic_File* file)
 {
    About_Dialog *ad;
-   char fullname[1024];
+   char buf[1024];
+   time_t stime;
 
    ad = about_dialog_new();
    ad->file = file;
@@ -248,10 +249,10 @@
    if(ad && ad->main.dialog) {
      entropy_core_file_cache_add_reference(file->md5);
           
-     snprintf(fullname,sizeof(fullname),"%s/%s", 
ad->file->path,ad->file->filename);
+     snprintf(buf,sizeof(buf),"%s/%s", ad->file->path,ad->file->filename);
 
      /*Setup the display*/
-     etk_entry_text_set(ETK_ENTRY(ad->general.file_entry), fullname);
+     etk_entry_text_set(ETK_ENTRY(ad->general.file_entry), buf);
 
      if (file->thumbnail) {
             etk_image_set_from_file(ETK_IMAGE(ad->preview.image),
@@ -262,7 +263,12 @@
                           PACKAGE_DATA_DIR "/icons/default.png",
                           NULL);            
      }
-     
+     snprintf(buf,50,"%lld kb", file->properties.st_size / 1024);
+     etk_entry_text_set(ETK_ENTRY(ad->general.size_entry), buf);
+
+     stime = file->properties.st_atime;
+     etk_entry_text_set(ETK_ENTRY(ad->general.lastm_entry), ctime(&stime));
+     etk_entry_text_set(ETK_ENTRY(ad->general.ftype_entry), file->mime_type); 
                     
           
      etk_widget_show_all(ad->main.dialog);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to