Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/plugins
Modified Files:
ewl_icon_local_viewer.c
Log Message:
More background work
===================================================================
RCS file:
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/ewl_icon_local_viewer.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_icon_local_viewer.c 21 Oct 2005 12:39:15 -0000 1.3
+++ ewl_icon_local_viewer.c 21 Oct 2005 14:32:06 -0000 1.4
@@ -546,11 +546,11 @@
Ecore_Hash* tmp_icon_hash;
entropy_generic_file* list_item;
+
/*Set the current path from the event source...*/
snprintf(view->current_dir, 1024, "%s://%s/%s",
request->file->uri_base, request->file->path, request->file->filename);
-
/*Keep a reference to our existing hash*/
tmp_gui_hash = view->gui_hash;
tmp_icon_hash = view->icon_hash;
@@ -558,31 +558,35 @@
view->icon_hash = ecore_hash_new(ecore_direct_hash,
ecore_direct_compare);
-
/*Clear the view, if there's anything to nuke*/
ewl_iconbox_clear(EWL_ICONBOX(view->iconbox));
+
ecore_list_goto_first(el);
while ( (list_item = ecore_list_next(el)) ) {
ewl_icon_local_viewer_add_icon(comp, list_item);
}
+
/*Before we begin, see if our file hash is initialized, if so -
we must destroy it first*/
/*TODO*/
gui_object_destroy_and_free(comp, tmp_gui_hash);
ecore_hash_destroy(tmp_icon_hash);
+
/*First, see if there is a custom BG image for this folder*/
if (entropy_config_str_get("iconbox_viewer",
view->current_dir)) {
- //printf("There is a BG set for this folder: '%s'\n",
entropy_config_str_get("iconbox_viewer", view->current_dir));
ewl_iconbox_background_set(EWL_ICONBOX(view->iconbox),
entropy_config_str_get("iconbox_viewer", view->current_dir));
} else {
ewl_iconbox_background_set(EWL_ICONBOX(view->iconbox),
NULL);
}
+
+ /*Goto the root*/
+ ewl_iconbox_scrollpane_goto_root(EWL_ICONBOX(view->iconbox));
}
break;
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs