Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/plugins


Modified Files:
        etk_list_viewer.c filesystem.c layout_etk_simple.c 
        layout_ewl_simple.c remote_thumbnailer.c thumbnailer.c 


Log Message:
* DND Work
* posix->file

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/etk_list_viewer.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- etk_list_viewer.c   21 Feb 2006 10:15:56 -0000      1.12
+++ etk_list_viewer.c   21 Feb 2006 10:45:18 -0000      1.13
@@ -92,16 +92,22 @@
    entropy_gui_component_instance* instance;
    entropy_etk_file_list_viewer* viewer;
 
+   Evas_List* rows;
+
    instance = data;
    viewer = instance->data;
 
    printf("Drag start...\n");
 
    tree = ETK_TREE(object);
-   row = etk_tree_selected_row_get(tree);
    drag = (ETK_WIDGET(tree))->drag;
-   //etk_tree_row_fields_get(row, etk_tree_nth_col_get(tree, 0), 
&icol1_string, &icol2_string, etk_tree_nth_col_get(tree, 1),NULL);
-   
+
+   for (rows = etk_tree_selected_rows_get(tree); rows; rows = rows->next ) {
+          printf("Row %p resolves to %p:%s!\n", rows->data, 
ecore_hash_get(row_hash, rows->data),
+                          ((gui_file*)ecore_hash_get(row_hash, 
rows->data))->file->uri );
+   }
+  
+
    types = calloc(1, sizeof(char*));
    num_types = 1;
    types[0] = strdup("text/plain");
@@ -247,7 +253,6 @@
 
   ecore_hash_set(viewer->gui_hash, file, e_file);
 
-  printf("Set %p to %p\n", new_row, e_file);
   ecore_hash_set(row_hash, new_row, e_file);
 
   /*Save this file in this list of files we're responsible for */
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/filesystem.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- filesystem.c        20 Feb 2006 06:48:36 -0000      1.42
+++ filesystem.c        21 Feb 2006 10:45:18 -0000      1.43
@@ -11,7 +11,7 @@
 #include <limits.h>
 
 #define NO_HIDDEN 1
-#define URI_POSIX "posix"
+#define URI_POSIX "file"
 
 
 
@@ -573,7 +573,7 @@
   evfs_file_uri_path *dir_path;
   entropy_file_listener *listener;
 
-  if ((!strcmp (request->file->uri_base, "posix")) && !request->drill_down
+  if ((!strcmp (request->file->uri_base, URI_POSIX)) && !request->drill_down
       && !request->file->parent) {
     printf ("Listing standard posix directory...\n");
 
@@ -596,7 +596,7 @@
       return NULL;
     }
 
-    snprintf (posix_name, 1024, "posix://%s", dire);
+    snprintf (posix_name, 1024, "file://%s", dire);
     dir_path = evfs_parse_uri (posix_name);
 
     /*First demonitor this reqeuestor's last directory, if any */
@@ -626,7 +626,7 @@
        if (request->file_type == FILE_ALL || filetype == request->file_type) {
          /*printf ("Adding..\n"); */
 
-         md5 = md5_entropy_path_file ("posix", dire, de->d_name);
+         md5 = md5_entropy_path_file ("file", dire, de->d_name);
 
          /*printf("Looking for key %s\n", md5);  */
          if (!(listener = entropy_core_file_cache_retrieve (md5))) {
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/layout_etk_simple.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- layout_etk_simple.c 20 Feb 2006 12:08:58 -0000      1.10
+++ layout_etk_simple.c 21 Feb 2006 10:45:18 -0000      1.11
@@ -302,7 +302,7 @@
 
    strcpy(file->path, home);
    strcpy(file->filename, pos);
-   strcpy(file->uri_base, "posix");
+   strcpy(file->uri_base, "file");
    strcpy(file->mime_type, "file/folder");
 
 
@@ -325,7 +325,7 @@
    
    strcpy(file->path, "/");
    strcpy(file->filename, "/");
-   strcpy(file->uri_base, "posix");
+   strcpy(file->uri_base, "file");
    strcpy(file->mime_type, "file/folder");
 
    instance = (*structure_plugin_init)(core, layout, row,file);
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/layout_ewl_simple.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- layout_ewl_simple.c 20 Feb 2006 06:48:36 -0000      1.43
+++ layout_ewl_simple.c 21 Feb 2006 10:45:18 -0000      1.44
@@ -178,7 +178,7 @@
 
 
   if (ewl_checkbutton_is_checked (EWL_CHECKBUTTON (viewer->posix_radio))) {
-    snprintf (new_uri, 2048, "posix://%s", path);
+    snprintf (new_uri, 2048, "file://%s", path);
     printf ("New URI is: '%s'\n", new_uri);
     layout_ewl_simple_add_header (instance, display_name, new_uri);
 
@@ -515,7 +515,7 @@
   char *eg = calloc (HEADER_CONFIG_MAX, sizeof (char));
 
   snprintf (eg, HEADER_CONFIG_MAX,
-           "Computer;posix:///|Home;posix://%s|Samba Example (Don't 
use!);smb://username:password@/test/machine/folder",
+           "Computer;file:///|Home;file://%s|Samba Example (Don't 
use!);smb://username:password@/test/machine/folder",
            entropy_core_home_dir_get (core));
 
   //printf("Setting default config string..\n");
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/remote_thumbnailer.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- remote_thumbnailer.c        12 Feb 2006 00:48:51 -0000      1.6
+++ remote_thumbnailer.c        21 Feb 2006 10:45:18 -0000      1.7
@@ -13,8 +13,8 @@
 static entropy_gui_component_instance *local_instance;
 
 
-#define THUMBNAILER_LOCAL_PLUGIN "posix"
-#define TMP_THUMBNAIL "posix:///tmp/"
+#define THUMBNAILER_LOCAL_PLUGIN "file"
+#define TMP_THUMBNAIL "file:///tmp/"
 
 int
 entropy_plugin_type_get ()
@@ -55,7 +55,7 @@
   copy_func = dlsym (plugin->dl_ref, "entropy_filesystem_file_copy");
 
   /*This thumbnailer is only for remotel files */
-  if (!strcmp (request->file->uri_base, "posix"))
+  if (!strcmp (request->file->uri_base, "file"))
     return NULL;
 
   /*If we already have a thumbnail, don't bother remaking it */
@@ -93,7 +93,7 @@
   file_instance_hash = ecore_hash_new (ecore_str_hash, ecore_str_compare);
 
   tmp_file = entropy_generic_file_new ();
-  strcpy (tmp_file->uri_base, "posix");
+  strcpy (tmp_file->uri_base, "file");
   strcpy (tmp_file->path, "/tmp");
 
   entropy_core_component_event_register (instance,
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/thumbnailer.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- thumbnailer.c       31 Jan 2006 07:17:48 -0000      1.3
+++ thumbnailer.c       21 Feb 2006 10:45:18 -0000      1.4
@@ -1,7 +1,7 @@
 #include "entropy.h"
 
 static Ecore_List *types = NULL;
-#define THUMBNAILER_LOCAL_PLUGIN "posix"
+#define THUMBNAILER_LOCAL_PLUGIN "file"
 
 int
 entropy_plugin_type_get ()
@@ -50,7 +50,7 @@
   entropy_thumbnail *thumb;
 
   /*This thumbnailer is only for local files */
-  if (strcmp (request->file->uri_base, "posix"))
+  if (strcmp (request->file->uri_base, THUMBNAILER_LOCAL_PLUGIN))
     return NULL;
 
   if (!request->file->thumbnail) {




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to