Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/plugins


Modified Files:
        etk_structure_viewer.c 


Log Message:
[Etk_Structure_Viewer] use stocks instead of custom shipped images

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/plugins/etk_structure_viewer.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- etk_structure_viewer.c      25 Jul 2007 17:01:03 -0000      1.37
+++ etk_structure_viewer.c      28 Jul 2007 23:21:35 -0000      1.38
@@ -171,6 +171,8 @@
   event_file_core *event;
   Etk_Tree_Col* col;
   Etk_Tree_Row* parent;
+  char* thumbnail_filename;
+  char* thumbnail_key;
 
   viewer = instance->data;
   parent = (Etk_Tree_Row*)viewer->parent_visual;
@@ -178,13 +180,16 @@
   col = etk_tree_nth_col_get(ETK_TREE(parent->tree), 0);
   etk_tree_freeze(ETK_TREE(viewer->tree));
 
+  /* [TODO] Make ETK_STOCK_BIG changable from options */
+  thumbnail_filename= etk_theme_icon_path_get();
+  thumbnail_key = etk_stock_key_get(ETK_STOCK_PLACES_FOLDER, ETK_STOCK_BIG);
   
   if (!prow) {
          new_row = etk_tree_row_append( 
((Etk_Tree_Row*)viewer->parent_visual)->tree, 
(Etk_Tree_Row*)viewer->parent_visual, col,
-                         PACKAGE_DATA_DIR "/icons/folder.png", NULL, 
_(file->filename), NULL);
+      thumbnail_filename, thumbnail_key, _(file->filename), NULL);
   } else {
          new_row = etk_tree_row_append( ((Etk_Tree_Row*)prow)->tree, 
(Etk_Tree_Row*)prow, col, 
-                         PACKAGE_DATA_DIR "/icons/folder.png", NULL, 
_(file->filename), NULL);
+      thumbnail_filename, thumbnail_key, _(file->filename), NULL);
   }
 
   ecore_hash_set(instance_map_hash, new_row, instance);



-------------------------------------------------------------------------
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