Enlightenment CVS committal Author : essiene Project : e17 Module : proto
Dir : e17/proto/entrance_edit_gui/src/widgets Modified Files: ew.c ew.h ew_dialog.c ew_dialog.h ew_edjelist.c ew_textlist.c Log Message: Fixed the annoying crashings and in the process restructured the gui code a lot, bottom-line - It Works (tm). We also now have a .desktop file, so you can start us from the main menu: Applications -> Settings -> Entrance (now we need a sweet icon... help! help!) For the what is left, see TODO. We have just 2 or 3 critical features/fixes left to add before we are ready to more into Entrance's main tree. [widgets] - Added ew_dialog_onclose_set(so we can explicitly declare onclose callback, especially for non-toplevel dialog windows. A couple of nasty bugs were hiding behind this one. [gui] - fixup crashings. All config dialogs work well now, and don't allow opening multiple instances. - Added a .desktop file for entrance_edit_gui, it shows up under Applications->Settings->Entrance =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ew.c 29 Sep 2006 10:29:37 -0000 1.6 +++ ew.c 6 Nov 2006 09:56:18 -0000 1.7 @@ -1,3 +1,4 @@ +#include <string.h> #include <etk/Etk.h> #include "Entrance_Widgets.h" @@ -41,7 +42,7 @@ } void -ew_title_set(Entrance_Widget ew, char *title) +ew_title_set(Entrance_Widget ew, const char *title) { if(!title) return; =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- ew.h 29 Sep 2006 10:29:37 -0000 1.8 +++ ew.h 6 Nov 2006 09:56:18 -0000 1.9 @@ -38,6 +38,6 @@ void ew_main_quit(void); Entrance_Widget ew_new(void); -void ew_title_set(Entrance_Widget ew, char *title); +void ew_title_set(Entrance_Widget ew, const char *title); #endif =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_dialog.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- ew_dialog.c 25 Sep 2006 19:08:56 -0000 1.12 +++ ew_dialog.c 6 Nov 2006 09:56:18 -0000 1.13 @@ -41,6 +41,12 @@ return ew; } +void +ew_dialog_onclose_set(Entrance_Dialog ew, void (*func)(void*, void*), void *data) +{ + etk_signal_connect("destroyed", ETK_OBJECT(ew->owner), ETK_CALLBACK(func), data); +} + void ew_dialog_show(Entrance_Dialog ew) { =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_dialog.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ew_dialog.h 25 Sep 2006 19:08:56 -0000 1.6 +++ ew_dialog.h 6 Nov 2006 09:56:18 -0000 1.7 @@ -36,6 +36,8 @@ void ew_dialog_close_button_add(Entrance_Dialog ew, void (*func)(void *, void*), void *); void ew_dialog_apply_button_add(Entrance_Dialog ew, void (*func)(void *, void*), void *); void ew_dialog_ok_button_add(Entrance_Dialog ew, void (*func)(void *, void*), void *); +void ew_dialog_onclose_set(Entrance_Dialog ew, void (*func)(void*, void*), void *data); + Entrance_Widget ew_dialog_group_add(Entrance_Dialog, const char *, int); #endif =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_edjelist.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- ew_edjelist.c 27 Sep 2006 21:45:47 -0000 1.7 +++ ew_edjelist.c 6 Nov 2006 09:56:19 -0000 1.8 @@ -1,3 +1,4 @@ +#include <string.h> #include <Etk.h> #include "Entrance_Widgets.h" =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_textlist.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- ew_textlist.c 27 Sep 2006 21:45:47 -0000 1.7 +++ ew_textlist.c 6 Nov 2006 09:56:19 -0000 1.8 @@ -1,3 +1,4 @@ +#include <string.h> #include <Etk.h> #include "Entrance_Widgets.h" ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs