Enlightenment CVS committal Author : chaos Project : e17 Module : proto
Dir : e17/proto/entropy/src/dialogs Modified Files: ewl_properties_dialog.c Log Message: * EWL Api update =================================================================== RCS file: /cvs/e/e17/proto/entropy/src/dialogs/ewl_properties_dialog.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_properties_dialog.c 18 Mar 2006 08:04:11 -0000 1.3 +++ ewl_properties_dialog.c 11 Apr 2006 09:57:42 -0000 1.4 @@ -22,10 +22,14 @@ void open_with_cb(Ewl_Widget *w , void *ev_data , void *user_data ) { entropy_mime_action* action = NULL; Ewl_Dialog_Event* e = ev_data; - char* file = ewl_filedialog_file_get (EWL_FILEDIALOG (w)); + char* file = NULL; if (e->response == EWL_STOCK_OPEN) { - //action = entropy_core_mime_hint_get(local_file->mime_type); + Ecore_List* l; + l = ewl_filedialog_selected_files_get(EWL_FILEDIALOG(w)); + ecore_list_goto_first(l); + file = ecore_list_current(l); + if (action) { action->executable = strdup(file); } else { @@ -40,7 +44,6 @@ void ewl_properties_dialog_openwith_cb(Ewl_Widget *w , void *ev_data , void *user_data ) { Ewl_Widget* file_dialog = ewl_filedialog_new(); - ewl_filedialog_type_set(EWL_FILEDIALOG(file_dialog), EWL_FILEDIALOG_TYPE_OPEN); ewl_callback_append (file_dialog, EWL_CALLBACK_VALUE_CHANGED, open_with_cb, NULL); ewl_widget_show(file_dialog); } ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs