Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/dialogs


Modified Files:
        ewl_interaction_dialog.c 


Log Message:
* evfs_operation work

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/dialogs/ewl_interaction_dialog.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_interaction_dialog.c    1 Feb 2006 12:07:54 -0000       1.1
+++ ewl_interaction_dialog.c    2 Feb 2006 21:58:31 -0000       1.2
@@ -8,11 +8,20 @@
 
 void ewl_entropy_user_interaction_dialog_cb(Ewl_Widget* w, void* ev_data, 
void* user_data)
 {
+        void (*operation_func)(long id,int response);
+        entropy_plugin* plugin;
+       long id = (long)ewl_widget_data_get(w,"operation");
+       
+       //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, (int)user_data );
+       
        Ewl_Widget* window = ewl_widget_data_get(w, "window");
        ewl_widget_destroy(window);
 }
 
-void entropy_ewl_user_interaction_dialog_new(int operation_id) 
+void entropy_ewl_user_interaction_dialog_new(long operation_id) 
 {
 
                char buf[PATH_MAX];
@@ -35,6 +44,7 @@
                ewl_button_label_set(EWL_BUTTON(button), "Yes");
                ewl_container_child_append(EWL_CONTAINER(hbox), button);
                ewl_widget_data_set(button, "window", window);
+               ewl_widget_data_set(button, "operation", (long*)operation_id);
                ewl_callback_append(button, EWL_CALLBACK_CLICKED, 
                        ewl_entropy_user_interaction_dialog_cb, 
(int*)ENTROPY_USER_INTERACTION_RESPONSE_YES);
                ewl_widget_show(button);
@@ -43,6 +53,7 @@
                ewl_button_label_set(EWL_BUTTON(button), "No");
                ewl_container_child_append(EWL_CONTAINER(hbox), button);
                ewl_widget_data_set(button, "window", window);
+               ewl_widget_data_set(button, "operation", (long*)operation_id);
                ewl_callback_append(button, EWL_CALLBACK_CLICKED, 
                        ewl_entropy_user_interaction_dialog_cb, 
(int*)ENTROPY_USER_INTERACTION_RESPONSE_NO);
                ewl_widget_show(button);
@@ -51,6 +62,7 @@
                ewl_button_label_set(EWL_BUTTON(button), "Abort");
                ewl_container_child_append(EWL_CONTAINER(hbox), button);
                ewl_widget_data_set(button, "window", window);
+               ewl_widget_data_set(button, "operation", (long*)operation_id);
                ewl_callback_append(button, EWL_CALLBACK_CLICKED, 
                        ewl_entropy_user_interaction_dialog_cb, 
(int*)ENTROPY_USER_INTERACTION_RESPONSE_ABORT);
                ewl_widget_show(button);




-------------------------------------------------------
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