Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : apps/exhibit

Dir     : e17/apps/exhibit/src/bin


Modified Files:
        exhibit.h exhibit_main.c exhibit_thumb.c 


Log Message:
As per morlenxus' request, populate the image tree first with filenames, then
display thumbs as they are loaded. This makes browsing large dirs faster and
you instantly get a list of files.


===================================================================
RCS file: /cvs/e/e17/apps/exhibit/src/bin/exhibit.h,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- exhibit.h   4 Jul 2007 15:27:44 -0000       1.43
+++ exhibit.h   6 Jul 2007 10:17:54 -0000       1.44
@@ -250,7 +250,6 @@
    Etk_Bool  selected;
    Epsilon  *ep;
    Ex_Tab   *tab;
-   Etk_Bool  is_update;
 };
 
 struct _Ex_Filedialog
===================================================================
RCS file: /cvs/e/e17/apps/exhibit/src/bin/exhibit_main.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -3 -r1.107 -r1.108
--- exhibit_main.c      4 Jul 2007 15:27:44 -0000       1.107
+++ exhibit_main.c      6 Jul 2007 10:17:54 -0000       1.108
@@ -367,7 +367,6 @@
        thumb->e = e;
        thumb->name = strdup(basename((char *) file));
        thumb->tab = e->cur_tab;
-       thumb->is_update = ETK_FALSE;
        thumb_list = evas_list_append(thumb_list, thumb);       
        if(selected_file)
          {
@@ -376,6 +375,11 @@
          }
        else
          thumb->selected = ETK_FALSE;
+       
+       row = etk_tree_row_append(ETK_TREE(e->cur_tab->itree), NULL, 
+                                 e->cur_tab->icol,
+                                 NULL, NULL, 
+                                 basename((char *) file), NULL);       
        
        if(pid == -1) _ex_thumb_generate();
      }
===================================================================
RCS file: /cvs/e/e17/apps/exhibit/src/bin/exhibit_thumb.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- exhibit_thumb.c     1 Jun 2007 10:19:06 -0000       1.15
+++ exhibit_thumb.c     6 Jul 2007 10:17:54 -0000       1.16
@@ -28,23 +28,13 @@
        Etk_Tree_Row *row;
        
        thumb->image = (char*)epsilon_thumb_file_get(thumb->ep);
-       if (thumb->is_update)
-         {
-            row = _ex_image_find_row_from_file(thumb->tab, thumb->name);
-            etk_tree_row_fields_set(row,
-                                    ETK_FALSE,
-                                    thumb->tab->icol, 
-                                    thumb->image, NULL,
-                                    thumb->name, NULL);
-         }
-       else
-         {
-            row = etk_tree_row_append(ETK_TREE(thumb->tab->itree),
-                                      NULL,
-                                      thumb->tab->icol, 
-                                      thumb->image, NULL,
-                                      thumb->name, NULL);
-         }
+       row = _ex_image_find_row_from_file(thumb->tab, thumb->name);
+       etk_tree_row_fields_set(row,
+                               ETK_FALSE,
+                               thumb->tab->icol, 
+                               thumb->image, NULL,
+                               thumb->name, NULL);
+       
        if(thumb->selected)
          {
             etk_tree_row_select(row);
@@ -174,7 +164,6 @@
    thumb->tab = e->cur_tab;
    thumb_list = evas_list_append(thumb_list, thumb);
    thumb->selected = ETK_FALSE;
-   thumb->is_update = ETK_TRUE;
    etk_tree_model_cache_remove(thumb->tab->imodel, old_thumb, NULL);
    if(pid == -1) _ex_thumb_generate();   
 }



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to