Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_widget.c
Log Message:
- formatting
- add DISABLED and DESTROYED output to ewl_widget_print
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -3 -r1.83 -r1.84
--- ewl_widget.c 27 May 2006 17:43:59 -0000 1.83
+++ ewl_widget.c 27 May 2006 23:46:39 -0000 1.84
@@ -12,7 +12,7 @@
int *t, int *b);
static void ewl_widget_theme_insets_get(Ewl_Widget *w, int *l, int *r,
int *t, int *b);
-static void ewl_widget_appearance_part_text_apply(Ewl_Widget * w,
+static void ewl_widget_appearance_part_text_apply(Ewl_Widget *w,
const char *part, char *text);
static void ewl_widget_layer_stack_add(Ewl_Widget *w);
static void ewl_widget_layer_update(Ewl_Widget *w);
@@ -57,7 +57,7 @@
* assigned the default callbacks.
*/
int
-ewl_widget_init(Ewl_Widget * w)
+ewl_widget_init(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET("w", w, FALSE);
@@ -128,7 +128,7 @@
* @brief Name the specified widget.
*/
void
-ewl_widget_name_set(Ewl_Widget * w, const char *name)
+ewl_widget_name_set(Ewl_Widget *w, const char *name)
{
char *t;
@@ -155,7 +155,7 @@
* @brief Get the name for the specified widget.
*/
const char *
-ewl_widget_name_get(Ewl_Widget * w)
+ewl_widget_name_get(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET("w", w, NULL);
@@ -170,7 +170,7 @@
* @brief Find a widget identified by a name.
*/
Ewl_Widget *
-ewl_widget_name_find(const char * name)
+ewl_widget_name_find(const char *name)
{
Ewl_Widget *match = NULL;
@@ -192,7 +192,7 @@
* The specified widget is realized, ie. actually displayed to the screen.
*/
void
-ewl_widget_realize(Ewl_Widget * w)
+ewl_widget_realize(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -233,7 +233,7 @@
* The specified widget is unrealized, ie. no longer displayed to the screen.
*/
void
-ewl_widget_unrealize(Ewl_Widget * w)
+ewl_widget_unrealize(Ewl_Widget *w)
{
Ewl_Container *pc;
@@ -321,7 +321,7 @@
* until the widget has been realized.
*/
void
-ewl_widget_show(Ewl_Widget * w)
+ewl_widget_show(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -358,7 +358,7 @@
* through the rendering loop.
*/
void
-ewl_widget_hide(Ewl_Widget * w)
+ewl_widget_hide(Ewl_Widget *w)
{
Ewl_Embed *emb;
@@ -396,7 +396,7 @@
* free's the widget.
*/
void
-ewl_widget_destroy(Ewl_Widget * w)
+ewl_widget_destroy(Ewl_Widget *w)
{
int i;
Ewl_Embed *emb;
@@ -456,7 +456,7 @@
* adjust the widgets size and position.
*/
void
-ewl_widget_configure(Ewl_Widget * w)
+ewl_widget_configure(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -479,7 +479,7 @@
* adjust the widgets appearance.
*/
void
-ewl_widget_theme_update(Ewl_Widget * w)
+ewl_widget_theme_update(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -500,7 +500,7 @@
* adjust the widgets attributes based on the new parent.
*/
void
-ewl_widget_reparent(Ewl_Widget * w)
+ewl_widget_reparent(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -522,7 +522,7 @@
* specified widget w.
*/
void
-ewl_widget_data_set(Ewl_Widget * w, void *k, void *v)
+ewl_widget_data_set(Ewl_Widget *w, void *k, void *v)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -549,7 +549,7 @@
* stored data or if an error occurs.
*/
void *
-ewl_widget_data_del(Ewl_Widget * w, void *k)
+ewl_widget_data_del(Ewl_Widget *w, void *k)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET("w", w, NULL);
@@ -571,7 +571,7 @@
* Retrieves a key / value pair with k as the key from the specified widget w.
*/
void *
-ewl_widget_data_get(Ewl_Widget * w, void *k)
+ewl_widget_data_get(Ewl_Widget *w, void *k)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET("w", w, NULL);
@@ -594,7 +594,7 @@
* update callback to initiate the change.
*/
void
-ewl_widget_appearance_set(Ewl_Widget * w, char *appearance)
+ewl_widget_appearance_set(Ewl_Widget *w, char *appearance)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -632,7 +632,7 @@
* @brief Retrieve the appearance key of the widget
*/
char *
-ewl_widget_appearance_get(Ewl_Widget * w)
+ewl_widget_appearance_get(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET("w", w, NULL);
@@ -682,7 +682,7 @@
* @brief Retrieve the appearance path key of the widget
*/
char *
-ewl_widget_appearance_path_get(Ewl_Widget * w)
+ewl_widget_appearance_path_get(Ewl_Widget *w)
{
char *ret = NULL;
int len = 0;
@@ -803,7 +803,7 @@
* Changes the text of a given Edje-define TEXT part.
*/
static void
-ewl_widget_appearance_part_text_apply(Ewl_Widget * w, const char *part, char
*text)
+ewl_widget_appearance_part_text_apply(Ewl_Widget *w, const char *part, char
*text)
{
Evas_Coord nw, nh;
@@ -838,7 +838,7 @@
* is reloaded for this widget.
*/
void
-ewl_widget_appearance_part_text_set(Ewl_Widget * w, char *part, char *text)
+ewl_widget_appearance_part_text_set(Ewl_Widget *w, char *part, char *text)
{
int i;
Ewl_Pair *match = NULL;
@@ -924,7 +924,7 @@
* each of those text parts to be retrieved independently.
*/
char *
-ewl_widget_appearance_part_text_get(Ewl_Widget * w, char *part)
+ewl_widget_appearance_part_text_get(Ewl_Widget *w, char *part)
{
int i;
Ewl_Pair *match = NULL;
@@ -970,7 +970,7 @@
* is reloaded for this widget.
*/
void
-ewl_widget_appearance_text_set(Ewl_Widget * w, char *text)
+ewl_widget_appearance_text_set(Ewl_Widget *w, char *text)
{
char *part;
@@ -993,7 +993,7 @@
* @brief Retrieve the text of the given theme part of a widget
*/
char *
-ewl_widget_appearance_text_get(Ewl_Widget * w)
+ewl_widget_appearance_text_get(Ewl_Widget *w)
{
char *part;
char *match = NULL;
@@ -1019,7 +1019,7 @@
* Re-enables a previously disabled widget.
*/
void
-ewl_widget_enable(Ewl_Widget * w)
+ewl_widget_enable(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -1042,7 +1042,7 @@
* This prevents that widget from receiving any user input events.
*/
void
-ewl_widget_disable(Ewl_Widget * w)
+ewl_widget_disable(Ewl_Widget *w)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -1404,14 +1404,16 @@
DCHECK_PARAM_PTR("w", w);
DCHECK_TYPE("w", w, EWL_WIDGET_TYPE);
- printf("%p:%s geometry (%d, %d) %d x %d, %s, %s\n",
+ printf("%p:%s geometry (%d, %d) %d x %d, %s, %s, %s, %s\n",
w, w->appearance,
ewl_object_current_x_get(EWL_OBJECT(w)),
ewl_object_current_y_get(EWL_OBJECT(w)),
ewl_object_current_w_get(EWL_OBJECT(w)),
ewl_object_current_h_get(EWL_OBJECT(w)),
(VISIBLE(w) ? "visible" : "not visible"),
- (REALIZED(w) ? "realized" : "not realized"));
+ (REALIZED(w) ? "realized" : "not realized"),
+ (DESTROYED(w) ? "destroyed" : "not destroyed"),
+ (DISABLED(w) ? "disabled" : "enabled"));
}
@@ -3104,7 +3106,9 @@
ewl_callback_del(w, EWL_CALLBACK_MOUSE_UP,
ewl_widget_drag_up_cb);
- ewl_object_flags_remove(EWL_OBJECT(w),
EWL_FLAG_PROPERTY_DRAGGABLE, EWL_FLAGS_PROPERTY_MASK);
+ ewl_object_flags_remove(EWL_OBJECT(w),
+ EWL_FLAG_PROPERTY_DRAGGABLE,
+ EWL_FLAGS_PROPERTY_MASK);
}
}
@@ -3113,7 +3117,8 @@
}
/**
- * @return Returns the current widget that has been clicked or moved (i.e.
drag_wait)
+ * @return Returns the current widget that has been clicked or moved
+ * (i.e. drag_wait)
* @brief Accessor function for the current drag candidate widget
*
*/
@@ -3128,7 +3133,6 @@
/**
* @return none
* @brief Cancel any active dnd_wait state widgets
- *
*/
void
ewl_widget_dnd_reset(void)
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs