Enlightenment CVS committal

Author  : rhapsodhy
Project : e17
Module  : proto

Dir     : e17/proto/entrance_edit_gui/src/widgets


Modified Files:
        ew_messagebox.c 


Log Message:

Added the other messageboxes too

===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_messagebox.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ew_messagebox.c     14 Aug 2006 18:38:41 -0000      1.2
+++ ew_messagebox.c     15 Aug 2006 11:30:46 -0000      1.3
@@ -5,14 +5,11 @@
 #include "config.h"
 
 static void _ew_messagebox_cb_ok(void *, int, void *);
-static Entrance_Dialog _ew_messagebox_new(const char *type, const char *title, 
const char *message);
 
-static Entrance_Dialog ew;
-
-static Entrance_Dialog
+Entrance_Dialog
 _ew_messagebox_new(const char *title, const char *message, const char *icon) 
 {
-       ew = ew_notice_new(title);
+       Entrance_Dialog ew = ew_notice_new(title);
        Entrance_Widget group;
        Entrance_Widget _image;
        Entrance_Widget _text;
@@ -47,9 +44,31 @@
 Entrance_Dialog
 ew_messagebox_ok(const char *title, const char *message, const char *icon) 
 {
-       _ew_messagebox_new(title, message, icon);
+       Entrance_Dialog ew = _ew_messagebox_new(title, message, icon);
        ew_notice_ok_button_add(ew, _ew_messagebox_cb_ok, NULL);
        ew_notice_show(ew);
+}
+
+Entrance_Dialog
+ew_messagebox_ok_cancel(const char *title, const char *message, const char 
*icon, void (*funct)(void *, int *, void *)) {
+       Entrance_Dialog ew = _ew_messagebox_new(title, message, icon);
+       ew_notice_ok_button_add(ew, funct, NULL);
+       ew_notice_cancel_button_add(ew, NULL, NULL);
+}
+
+Entrance_Dialog
+ew_messagebox_yes_no(const char *title, const char *message, const char *icon, 
void (*funct)(void *, int *, void *)) {
+       Entrance_Dialog ew = _ew_messagebox_new(title, message, icon);
+       ew_notice_yes_button_add(ew, funct, NULL);
+       ew_notice_no_button_add(ew, NULL, NULL);
+}
+
+Entrance_Dialog
+ew_messagebox_yes_no_cancel(const char *title, const char *message, const char 
*icon, void (*funct)(void *, int *, void *)) {
+       Entrance_Dialog ew = _ew_messagebox_new(title, message, icon);
+       ew_notice_yes_button_add(ew, funct, NULL);
+       ew_notice_no_button_add(ew, NULL, NULL);
+       ew_notice_cancel_button_add(ew, NULL, NULL);
 }
 
 static void



-------------------------------------------------------------------------
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

Reply via email to