Enlightenment CVS committal Author : handyande Project : e17 Module : proto
Dir : e17/proto/enity/src/bin Modified Files: enity.c Log Message: No segv if we have only buttons (no data) =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/enity/src/bin/enity.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- enity.c 14 Mar 2006 12:11:03 -0000 1.4 +++ enity.c 14 Mar 2006 13:39:20 -0000 1.5 @@ -21,7 +21,12 @@ switch(response_id) { case ETK_RESPONSE_OK: - if(ETK_IS_ENTRY(data)) + if (!data) + { + _en_retval = 0; + break; + } + else if(ETK_IS_ENTRY(data)) { printf("%s\n", etk_entry_text_get(ETK_ENTRY(data))); break; @@ -143,7 +148,7 @@ value = data->data; dialog = etk_message_dialog_new(ETK_MESSAGE_DIALOG_QUESTION, ETK_MESSAGE_DIALOG_OK_CANCEL, value); - etk_signal_connect("response", ETK_OBJECT(dialog), ETK_CALLBACK(_en_ok_print_stdout_cb), NULL); + etk_signal_connect("response", ETK_OBJECT(dialog), ETK_CALLBACK(_en_ok_print_stdout_cb), NULL); etk_container_border_width_set(ETK_CONTAINER(dialog), 4); etk_window_title_set(ETK_WINDOW(dialog), _("Question")); ------------------------------------------------------- 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