Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        Ewl.h ewl_button.c ewl_button.h 


Log Message:
Updated documenatation in a couple spots, added a function for retrieving the
label on a button.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/Ewl.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- Ewl.h       4 Nov 2003 07:16:45 -0000       1.39
+++ Ewl.h       10 Nov 2003 16:25:50 -0000      1.40
@@ -129,13 +129,13 @@
  * file was specified, then initialize the EWL library.
  *
  * @code
- * int main (int argc, char ***argv)
+ * int main (int argc, char **argv)
  * {
  *     if (argc < 2) {
  *             fprintf(stderr, "Usage: %s <image>\n", argv[0]);
  *             return 1;
  *     }
- *     ewl_init(argc, argv);
+ *     ewl_init(&argc, argv);
  * @endcode
  *
  * Next allocate the window, set it's title and attach a callback to catch it's
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_button.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- ewl_button.c        29 Sep 2003 21:46:50 -0000      1.48
+++ ewl_button.c        10 Nov 2003 16:25:50 -0000      1.49
@@ -83,3 +83,20 @@
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
+
+/**
+ * @param b: the buttons whose label will be returned
+ * @return A newly allocated copy of the label on the button.
+ * @brief Retrieve the label of the specified button
+ */
+char *ewl_button_get_label(Ewl_Button *b)
+{
+       char *val = NULL;
+
+       DENTER_FUNCTION(DLEVEL_STABLE);
+
+       if (b->label_object)
+               val = ewl_text_get_text(b->label_object);
+
+       DRETURN_PTR(val, DLEVEL_STABLE);
+}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_button.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- ewl_button.h        16 Oct 2003 20:54:25 -0000      1.20
+++ ewl_button.h        10 Nov 2003 16:25:50 -0000      1.21
@@ -41,6 +41,7 @@
 Ewl_Widget     *ewl_button_new(char *l);
 void            ewl_button_init(Ewl_Button * b, char *label);
 void            ewl_button_set_label(Ewl_Button * b, char *l);
+char           *ewl_button_get_label(Ewl_Button *b);
 
 /**
  * @}




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to