Enlightenment CVS committal

Author  : rhapsodhy
Project : e17
Module  : proto

Dir     : e17/proto/entrance_edit_gui/src/widgets


Modified Files:
        Entrance_Widgets.h Makefile.am ew_button.c ew_button.h 
        ew_messagebox.c ew_messagebox.h 
Added Files:
        ew_checkbox.c ew_checkbox.h ew_radio_button.c 
        ew_radio_button.h ew_toggle_button.c ew_toggle_button.h 


Log Message:

Whee! We now have checkbox, radio button, toggle button, and all of the
messageboxes. Also you can modify the label of the button. Should do something
with these stuff, though:D

===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/Entrance_Widgets.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- Entrance_Widgets.h  15 Aug 2006 02:36:45 -0000      1.6
+++ Entrance_Widgets.h  15 Aug 2006 13:52:07 -0000      1.7
@@ -14,5 +14,8 @@
 #include "ew_label.h"
 #include "ew_entry.h"
 #include "ew_button.h"
+#include "ew_radio_button.h"
+#include "ew_toggle_button.h"
+#include "ew_checkbox.h"
 
 #endif
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/Makefile.am,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- Makefile.am 15 Aug 2006 02:36:45 -0000      1.7
+++ Makefile.am 15 Aug 2006 13:52:07 -0000      1.8
@@ -20,7 +20,10 @@
        ew_image.h \
        ew_label.h \
        ew_entry.h \
-       ew_button.h
+       ew_button.h \
+       ew_toggle_button.h \
+       ew_radio_button.h \
+       ew_checkbox.h
 
 libentrance_widgets_ladir = $(prefix)/include
 
@@ -38,6 +41,9 @@
        ew_label.c \
        ew_entry.c \
        ew_button.c \
+       ew_toggle_button.c \
+       ew_radio_button.c \
+       ew_checkbox.c \
        $(libentrance_widgets_la_HEADERS)
        
 libentrance_widgets_la_LIBADD  = @etk_libs@
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_button.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ew_button.c 15 Aug 2006 02:36:45 -0000      1.1
+++ ew_button.c 15 Aug 2006 13:52:07 -0000      1.2
@@ -24,3 +24,12 @@
                etk_signal_connect("clicked", ETK_OBJECT(ew->owner), 
ETK_CALLBACK(func), data);
 }
 
+void
+ew_button_label_set(Entrance_Widget ew, char *label) {
+       etk_button_label_set(ETK_BUTTON(ew->owner), label);
+}
+
+const char *
+ew_button_label_get(Entrance_Widget ew) {
+       return etk_button_label_get(ETK_BUTTON(ew->owner));
+}
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_button.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ew_button.h 15 Aug 2006 02:36:45 -0000      1.1
+++ ew_button.h 15 Aug 2006 13:52:07 -0000      1.2
@@ -3,5 +3,7 @@
 
 Entrance_Widget ew_button_new(const char *label, void (*func)(void *, void*), 
void *data);
 void ew_button_onclick_set(Entrance_Widget ew, void (*func)(void*, void*), 
void *data);
+void ew_button_label_set(Entrance_Widget ew, char *label);
+const char *ew_button_label_get(Entrance_Widget ew);
 
 #endif
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_messagebox.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ew_messagebox.c     15 Aug 2006 11:30:46 -0000      1.3
+++ ew_messagebox.c     15 Aug 2006 13:52:07 -0000      1.4
@@ -45,34 +45,43 @@
 ew_messagebox_ok(const char *title, const char *message, const char *icon) 
 {
        Entrance_Dialog ew = _ew_messagebox_new(title, message, icon);
-       ew_notice_ok_button_add(ew, _ew_messagebox_cb_ok, NULL);
+       ew_notice_ok_button_add(ew, _ew_messagebox_cb_ok, ew);
        ew_notice_show(ew);
+
+       return ew;
 }
 
 Entrance_Dialog
-ew_messagebox_ok_cancel(const char *title, const char *message, const char 
*icon, void (*funct)(void *, int *, void *)) {
+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);
+
+       return ew;
 }
 
 Entrance_Dialog
-ew_messagebox_yes_no(const char *title, const char *message, const char *icon, 
void (*funct)(void *, int *, void *)) {
+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);
+
+       return ew;
 }
 
 Entrance_Dialog
-ew_messagebox_yes_no_cancel(const char *title, const char *message, const char 
*icon, void (*funct)(void *, int *, void *)) {
+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);
+
+       return ew;
 }
 
 static void
 _ew_messagebox_cb_ok(void *win, int response, void *data) {
+       Entrance_Dialog ew = data;
        if(response == EW_NOTICE_OK_BUTTON)
                ew_dialog_destroy(ew);
 }
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_messagebox.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ew_messagebox.h     14 Aug 2006 18:38:41 -0000      1.2
+++ ew_messagebox.h     15 Aug 2006 13:52:07 -0000      1.3
@@ -10,7 +10,7 @@
 Entrance_Dialog ew_messagebox_ok(const char *type, const char *title, const 
char *message);
 Entrance_Dialog ew_messagebox_ok_cancel(const char *, const char *, const char 
*, void (*)(void *, int, void *));
 Entrance_Dialog ew_messagebox_yes_no(const char *, const char *, const char *, 
void (*)(void *, int, void *));
-Entrance_Dialog ew_messagebox_yes_no_cancel(const char *, const char *, void 
(*)(void *, int, void *));
+Entrance_Dialog ew_messagebox_yes_no_cancel(const char *, const char *, const 
char *, void (*)(void *, int, void *));
 
 
 #endif



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