Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/plugins
Modified Files:
remote_thumbnailer.c
Log Message:
* Remote thumbnailer should always overwrite temp. images
===================================================================
RCS file:
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/remote_thumbnailer.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- remote_thumbnailer.c 1 Feb 2006 08:06:02 -0000 1.5
+++ remote_thumbnailer.c 12 Feb 2006 00:48:51 -0000 1.6
@@ -99,6 +99,9 @@
entropy_core_component_event_register (instance,
entropy_core_gui_event_get
(ENTROPY_GUI_EVENT_FILE_PROGRESS));
+ entropy_core_component_event_register (instance,
+ entropy_core_gui_event_get
+
(ENTROPY_GUI_EVENT_USER_INTERACTION_YES_NO_ABORT));
return instance;
}
@@ -109,6 +112,19 @@
{
switch (eevent->event_type) {
+ case ENTROPY_NOTIFY_USER_INTERACTION_YES_NO_ABORT: {
+ /*Always overwrite here - we're in /tmp, and we don't want to prompt
+ * the user*/
+ void (*operation_func)(long id,int response);
+ entropy_plugin* plugin;
+ long id = (long)obj;
+
+ //FIXME
+ plugin = entropy_plugins_type_get_first( ENTROPY_PLUGIN_BACKEND_FILE
,ENTROPY_PLUGIN_SUB_TYPE_ALL);
+ operation_func = dlsym(plugin->dl_ref,
"entropy_filesystem_operation_respond");
+ (*operation_func)( id, ENTROPY_USER_INTERACTION_RESPONSE_YES );
+
+ }
case ENTROPY_NOTIFY_FILE_PROGRESS:{
entropy_file_progress *progress = obj;
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs