Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_border.c ewl_border.h
Log Message:
Border API update.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_border.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_border.c 3 Oct 2005 06:43:06 -0000 1.5
+++ ewl_border.c 4 Oct 2005 02:30:56 -0000 1.6
@@ -4,11 +4,10 @@
#include "ewl_private.h"
/**
- * @param label: the initial label to display on the border
* @return Returns a new border container on success, NULL on failure.
* @brief Allocate and initialize a new border container
*/
-Ewl_Widget *ewl_border_new(char *label)
+Ewl_Widget *ewl_border_new(void)
{
Ewl_Border *b;
@@ -19,18 +18,17 @@
DRETURN_PTR(NULL, DLEVEL_STABLE);
}
- ewl_border_init(b, label);
+ ewl_border_init(b);
DRETURN_PTR(EWL_WIDGET(b), DLEVEL_STABLE);
}
/**
* @param b: the border container to initialize
- * @param label: the initial text to display on the border
* @return Returns TRUE on success, FALSE on failure.
* @brief Initialize a border container to default values
*/
-int ewl_border_init(Ewl_Border * b, char *label)
+int ewl_border_init(Ewl_Border * b)
{
Ewl_Widget *w;
@@ -46,7 +44,6 @@
ewl_object_fill_policy_set(EWL_OBJECT(w), EWL_FLAG_FILL_FILL);
b->label = ewl_text_new();
- ewl_text_text_set(EWL_TEXT(b->label), label);
ewl_widget_internal_set(b->label, TRUE);
ewl_container_child_append(EWL_CONTAINER(b), b->label);
ewl_widget_show(b->label);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_border.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_border.h 17 Feb 2005 19:14:54 -0000 1.3
+++ ewl_border.h 4 Oct 2005 02:30:56 -0000 1.4
@@ -41,8 +41,8 @@
Ewl_Position label_position; /**< Flags for placing the label */
};
-Ewl_Widget *ewl_border_new(char *label);
-int ewl_border_init(Ewl_Border * b, char *label);
+Ewl_Widget *ewl_border_new(void);
+int ewl_border_init(Ewl_Border * b);
void ewl_border_text_set(Ewl_Border * b, char *t);
char *ewl_border_text_get(Ewl_Border * b);
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs