Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_attach.h
Log Message:
- cast the define calls
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_attach.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewl_attach.h 15 Mar 2006 04:03:48 -0000 1.11
+++ ewl_attach.h 8 Oct 2006 02:44:48 -0000 1.12
@@ -42,14 +42,14 @@
* Convenience method to set a tooltip text attachment
*/
#define ewl_attach_tooltip_text_set(w, data) \
- ewl_attach_text_set(w, EWL_ATTACH_TYPE_TOOLTIP, data)
+ ewl_attach_text_set(EWL_WIDGET(w), EWL_ATTACH_TYPE_TOOLTIP, data)
/**
* @def ewl_attach_tooltip_widget_set(w, data)
* Convenience method to set a tooltip widget attachement
*/
#define ewl_attach_tooltip_widget_set(w, data) \
- ewl_attach_widget_set(w, EWL_ATTACH_TYPE_TOOLTIP, data)
+ ewl_attach_widget_set(EWL_WIDGET(w), EWL_ATTACH_TYPE_TOOLTIP, data)
/**
@@ -57,7 +57,7 @@
* Convenience method to set a cursor widget attachment
*/
#define ewl_attach_mouse_cursor_set(w, data) \
- ewl_attach_other_set(w, EWL_ATTACH_TYPE_MOUSE_CURSOR, \
+ ewl_attach_other_set(EWL_WIDGET(w), EWL_ATTACH_TYPE_MOUSE_CURSOR, \
(int *)ecore_x_cursor_shape_get(data))
/**
@@ -65,42 +65,43 @@
* Convenience method to set a colour widget attachment
*/
#define ewl_attach_color_set(w, data) \
- ewl_attach_other_set(w, EWL_ATTACH_TYPE_COLOR, data)
+ ewl_attach_other_set(EWL_WIDGET(w), EWL_ATTACH_TYPE_COLOR, data)
/**
* @def ewl_attach_color_get(w)
* Convenience method to get a colour attachment back
*/
#define ewl_attach_color_get(w) \
- ewl_attach_get(w, EWL_ATTACH_TYPE_COLOR)
+ ewl_attach_get(EWL_WIDGET(w), EWL_ATTACH_TYPE_COLOR)
/**
* @def ewl_attach_name_set(w, data)
* Convenience method to set a widget name attachment
*/
#define ewl_attach_name_set(w, data) \
- ewl_attach_text_set(w, EWL_ATTACH_TYPE_NAME, data)
+ ewl_attach_text_set(EWL_WIDGET(w), EWL_ATTACH_TYPE_NAME, data)
/**
* @def ewl_attach_name_get(w)
* Convenience method to get a widgets name attachment
*/
#define ewl_attach_name_get(w) \
- ewl_attach_get(w, EWL_ATTACH_TYPE_NAME)
+ ewl_attach_get(EWL_WIDGET(w), EWL_ATTACH_TYPE_NAME)
/**
* @def ewl_attach_notebook_data_set(w, data)
* Convenience method to attach data to a notebook item
*/
#define ewl_attach_notebook_data_set(w, data) \
- ewl_attach_other_set(w, EWL_ATTACH_TYPE_NOTEBOOK_DATA, data)
+ ewl_attach_other_set(EWL_WIDGET(w), \
+ EWL_ATTACH_TYPE_NOTEBOOK_DATA, data)
/**
* @def ewl_attach_notebook_data_get(w)
* Convenience method to get the data attached to a notebook item
*/
#define ewl_attach_notebook_data_get(w) \
- ewl_attach_get(w, EWL_ATTACH_TYPE_NOTEBOOK_DATA)
+ ewl_attach_get(EWL_WIDGET(w), EWL_ATTACH_TYPE_NOTEBOOK_DATA)
void ewl_attach_text_set(Ewl_Widget *w, Ewl_Attach_Type t, const char *data);
void ewl_attach_widget_set(Ewl_Widget *w, Ewl_Attach_Type t, Ewl_Widget *data);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs