Enlightenment CVS committal Author : werkt Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_dialog.c Log Message: Cleaned up ewl_dialog_button_[left_]add =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_dialog.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_dialog.c 28 Mar 2005 07:04:27 -0000 1.2 +++ ewl_dialog.c 20 Jul 2005 00:30:27 -0000 1.3 @@ -276,7 +276,7 @@ if (!dialog) return NULL; - button = ewl_button_stock_new(button_text); + button = ewl_button_stock_with_id_new(button_text, response_id); ewl_object_padding_set(EWL_OBJECT(button), 0, 3, 3, 3); ewl_container_child_append(EWL_CONTAINER(dialog->action_area), button); @@ -284,10 +284,6 @@ EWL_FLAG_FILL_VFILL || EWL_FLAG_FILL_SHRINK); - ewl_widget_data_set(button, "RESPONSE_ID", (void *) response_id); - - ewl_widget_show(button); - DRETURN_PTR(button, DLEVEL_STABLE); } @@ -309,7 +305,7 @@ if (!dialog) return NULL; - button = ewl_button_stock_new(button_text); + button = ewl_button_stock_with_id_new(button_text, response_id); ewl_object_padding_set(EWL_OBJECT(button), 0, 3, 3, 3); ewl_container_child_prepend(EWL_CONTAINER(dialog->action_area), button); @@ -317,10 +313,6 @@ EWL_FLAG_FILL_VFILL || EWL_FLAG_FILL_SHRINK); - ewl_widget_data_set(button, "RESPONSE_ID", (void *) response_id); - - ewl_widget_show(button); - DRETURN_PTR(button, DLEVEL_STABLE); } ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs