Enlightenment CVS committal Author : dj2 Project : e17 Module : proto
Dir : e17/proto/entropy/src/plugins Modified Files: ewl_icon_local_viewer.c ewl_properties_dialog.c Log Message: - convert to filedialog changes in ewl =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/ewl_icon_local_viewer.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -3 -r1.33 -r1.34 --- ewl_icon_local_viewer.c 29 Nov 2005 08:27:16 -0000 1.33 +++ ewl_icon_local_viewer.c 4 Dec 2005 16:56:48 -0000 1.34 @@ -68,7 +68,6 @@ entropy_file_progress_window* progress; Ewl_Widget* file_dialog; - Ewl_Widget* file_dialog_parent; event_idle_processor* last_processor; @@ -121,19 +120,19 @@ void ewl_iconbox_background_set_file_cb(Ewl_Widget *w , void *ev, void *user_data ) { - Ewl_Filedialog_Event *e; + Ewl_Dialog_Event *e; entropy_gui_component_instance* instance = user_data; entropy_icon_viewer* viewer = instance->data; char* file = ewl_filedialog_file_get (EWL_FILEDIALOG (w)); - e = EWL_FILEDIALOG_EVENT(ev); + e = ev; if (e->response == EWL_STOCK_OPEN) { printf("Curent directory is '%s'\n", viewer->current_dir); entropy_config_str_set("iconbox_viewer", viewer->current_dir, file); - ewl_widget_destroy(viewer->file_dialog_parent); + ewl_widget_destroy(viewer->file_dialog); } else if (e->response == EWL_STOCK_CANCEL) { - ewl_widget_destroy(viewer->file_dialog_parent); + ewl_widget_destroy(viewer->file_dialog); } @@ -145,14 +144,10 @@ entropy_icon_viewer* viewer = instance->data; viewer->file_dialog = ewl_filedialog_new(); - viewer->file_dialog_parent = ewl_window_new(); ewl_filedialog_type_set(EWL_FILEDIALOG(viewer->file_dialog), EWL_FILEDIALOG_TYPE_OPEN); ewl_callback_append (viewer->file_dialog, EWL_CALLBACK_VALUE_CHANGED, ewl_iconbox_background_set_file_cb, instance); - ewl_container_child_append(EWL_CONTAINER(viewer->file_dialog_parent), viewer->file_dialog); ewl_widget_show(viewer->file_dialog); - ewl_widget_show(viewer->file_dialog_parent); - } /*---------------------------*/ =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/ewl_properties_dialog.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ewl_properties_dialog.c 29 Nov 2005 08:27:16 -0000 1.4 +++ ewl_properties_dialog.c 4 Dec 2005 16:56:48 -0000 1.5 @@ -21,7 +21,7 @@ void open_with_cb(Ewl_Widget *w , void *ev_data , void *user_data ) { entropy_mime_action* action; - Ewl_Filedialog_Event* e = EWL_FILEDIALOG_EVENT(ev_data); + Ewl_Dialog_Event* e = ev_data; char* file = ewl_filedialog_file_get (EWL_FILEDIALOG (w)); if (e->response == EWL_STOCK_OPEN) { @@ -33,20 +33,16 @@ } } - ewl_widget_destroy(EWL_WIDGET(user_data)); + ewl_widget_destroy(EWL_WIDGET(w)); } void ewl_properties_dialog_openwith_cb(Ewl_Widget *w , void *ev_data , void *user_data ) { Ewl_Widget* file_dialog = ewl_filedialog_new(); - Ewl_Widget* window = ewl_window_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, window); - ewl_container_child_append(EWL_CONTAINER(window), file_dialog); + ewl_callback_append (file_dialog, EWL_CALLBACK_VALUE_CHANGED, open_with_cb, NULL); ewl_widget_show(file_dialog); - ewl_widget_show(window); - } void ewl_icon_local_viewer_show_stat(entropy_file_stat* file_stat) { ------------------------------------------------------- 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs