Enlightenment CVS committal Author : titan Project : e17 Module : proto
Dir : e17/proto/ephoto/src Modified Files: ephoto_viewer.c Log Message: New ascii art from pfritz =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_viewer.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- ephoto_viewer.c 6 Oct 2006 02:25:11 -0000 1.16 +++ ephoto_viewer.c 6 Oct 2006 21:45:21 -0000 1.17 @@ -5,7 +5,9 @@ void destroy_vwin(Ewl_Widget *w, void *event, void *data) { - ewl_widget_destroy(w); + Ewl_Widget *win; + win = data; + ewl_widget_destroy(win); } void change_image(Ewl_Widget *w, void *event, void *data) @@ -220,7 +222,7 @@ ewl_window_title_set(EWL_WINDOW(vwin), gettext("Ephoto Image Viewer")); ewl_window_name_set(EWL_WINDOW(vwin), "Ephoto Image Viewer"); ewl_object_size_request(EWL_OBJECT(vwin), 480, 480); - ewl_callback_append(vwin, EWL_CALLBACK_DELETE_WINDOW, destroy_vwin, NULL); + ewl_callback_append(vwin, EWL_CALLBACK_DELETE_WINDOW, destroy_vwin, vwin); ewl_widget_show(vwin); vbox = ewl_vbox_new(); @@ -256,7 +258,7 @@ ewl_button_label_set(EWL_BUTTON(menu_item), "Exit"); ewl_object_alignment_set(EWL_OBJECT(menu_item), EWL_FLAG_ALIGN_CENTER); ewl_container_child_append(EWL_CONTAINER(menu), menu_item); - ewl_callback_append(menu_item, EWL_CALLBACK_CLICKED, destroy_vwin, NULL); + ewl_callback_append(menu_item, EWL_CALLBACK_CLICKED, destroy_vwin, vwin); ewl_object_fill_policy_set(EWL_OBJECT(menu_item), EWL_FLAG_FILL_ALL); ewl_widget_show(menu_item); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs