Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_paned.c ewl_attach.h Log Message: - don't use private pointer casting macros in public header (ewl_attach.c) - fix more warnings (we are now hopefully warning free) =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -3 -r1.72 -r1.73 --- ewl_paned.c 7 May 2008 13:38:25 -0000 1.72 +++ ewl_paned.c 18 Jul 2008 13:05:46 -0000 1.73 @@ -1197,7 +1197,7 @@ ewl_callback_append(w, EWL_CALLBACK_MOUSE_MOVE, ewl_paned_grabber_cb_mouse_move, - (void *) ds); + INT_TO_INTPTR(ds)); ewl_widget_state_set(w, "selected", EWL_STATE_PERSISTENT); DLEAVE_FUNCTION(DLEVEL_STABLE); @@ -1242,7 +1242,7 @@ e = ev; p = EWL_PANED(w->parent); c = EWL_CONTAINER(p); - mouse_offset = (int) data; + mouse_offset = INTPTR_TO_INT(data); if (ewl_paned_orientation_get(p) == EWL_ORIENTATION_HORIZONTAL) { =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_attach.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- ewl_attach.h 18 Jul 2008 12:32:02 -0000 1.25 +++ ewl_attach.h 18 Jul 2008 13:05:46 -0000 1.26 @@ -80,13 +80,13 @@ */ #define ewl_attach_mouse_cursor_set(w, cursor) \ ewl_attach_other_set(EWL_WIDGET(w), EWL_ATTACH_TYPE_MOUSE_CURSOR, \ - INT_TO_INTPTR(cursor)) + (void *)(long int)(cursor)) /** * @def ewl_attach_mouse_cursor_get(w) * Convenience method to get the widget's cursor attachment */ #define ewl_attach_mouse_cursor_get(w) \ - INTPTR_TO_INT(ewl_attach_get(EWL_WIDGET(w), \ + ((int)(long int) ewl_attach_get(EWL_WIDGET(w), \ EWL_ATTACH_TYPE_MOUSE_CURSOR)) /** ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs