Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/plugins
Modified Files:
ewl_icon_local_viewer.c filesystem.c structure_viewer.c
Log Message:
* Incremental core reference cleanout
===================================================================
RCS file:
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/ewl_icon_local_viewer.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- ewl_icon_local_viewer.c 21 Nov 2005 09:27:10 -0000 1.27
+++ ewl_icon_local_viewer.c 21 Nov 2005 11:07:01 -0000 1.28
@@ -344,7 +344,7 @@
ecore_list_goto_first(icon_list);
while ( (list_item = ecore_list_next(icon_list)) ) {
file = ecore_hash_get(
((entropy_icon_viewer*)instance->data)->icon_hash, list_item);
- entropy_core_selected_file_add(instance->core, file->file);
+ entropy_core_selected_file_add(file->file);
@@ -455,7 +455,7 @@
if (freeobj) gui_file_destroy(freeobj);
/*Tell the core we no longer need this file - it might free it
now*/
- entropy_core_file_cache_remove_reference(comp->core, obj->md5);
+ entropy_core_file_cache_remove_reference(obj->md5);
}
ecore_hash_destroy( gui_hash);
ecore_list_destroy(list);
@@ -659,7 +659,7 @@
gui_file* gui_object;
if (!ecore_hash_get(view->gui_hash, list_item)) {
- entropy_core_file_cache_add_reference(comp->core,
list_item->md5);
+ entropy_core_file_cache_add_reference(list_item->md5);
icon = ewl_iconbox_icon_add(EWL_ICONBOX(view->iconbox),
list_item->filename, PACKAGE_DATA_DIR "/icons/default.png");
ewl_callback_append(EWL_WIDGET(icon),
EWL_CALLBACK_MOUSE_DOWN, icon_click_cb, view);
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/filesystem.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- filesystem.c 21 Nov 2005 10:49:21 -0000 1.22
+++ filesystem.c 21 Nov 2005 11:07:01 -0000 1.23
@@ -71,7 +71,7 @@
listener =
entropy_malloc(sizeof(entropy_file_listener));
listener->file = file;
listener->count = 0;
-
entropy_core_file_cache_add(((entropy_gui_component_instance*)key)->core,md5,
listener);
+
entropy_core_file_cache_add(md5, listener);
entropy_free(folder);
@@ -273,7 +273,7 @@
/*We are referencing
the parent, so - we need to tell the core that we *need* this
* file - i.e. don't
clean it up*/
-
entropy_core_file_cache_add_reference(filesystem_core,
calling_request->reparent_file->md5);
+
entropy_core_file_cache_add_reference(calling_request->reparent_file->md5);
}
/*Mark the file's uri FIXME do
this properly*/
@@ -285,7 +285,7 @@
listener =
entropy_malloc(sizeof(entropy_file_listener));
listener->file = file;
listener->count = 0;
-
entropy_core_file_cache_add(filesystem_core,md5, listener);
+
entropy_core_file_cache_add(md5, listener);
} else {
@@ -553,7 +553,7 @@
listener->count = 0;
-
entropy_core_file_cache_add(request->core,md5, listener);
+
entropy_core_file_cache_add(md5, listener);
} else {
ecore_list_append(el,
listener->file);
entropy_free(md5); /*We don't
need this one, we're returning an old ref*/
===================================================================
RCS file:
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/structure_viewer.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- structure_viewer.c 17 Nov 2005 22:59:45 -0000 1.12
+++ structure_viewer.c 21 Nov 2005 11:07:01 -0000 1.13
@@ -59,7 +59,7 @@
Ewl_Row* row = ecore_hash_get(viewer->row_folder_hash,
event_file);
if (row) {
- ewl_tree_row_destroy(viewer->tree, row);
+ ewl_tree_row_destroy(EWL_TREE(viewer->tree), row);
}
}
break;
@@ -100,7 +100,7 @@
*c = 1;
/*Tell the core we're watching this
file*/
-
entropy_core_file_cache_add_reference(comp->core, file->md5);
+
entropy_core_file_cache_add_reference(file->md5);
structure_viewer_add_row(comp, file,
row);
ecore_hash_set(viewer->loaded_dirs,
row, c);
}
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs