Enlightenment CVS committal Author : moom Project : e17 Module : proto
Dir : e17/proto/etk/src/engines/ecore_evas_x11 Modified Files: ecore_evas_x11.c Log Message: * [Etk_Engine] Add etk_engine_event_timestamp_get() * [Etk_Popup_Window] Use etk_engine_event_timestamp_get() to fix a bug with Bulgarian X :) =================================================================== RCS file: /cvs/e/e17/proto/etk/src/engines/ecore_evas_x11/ecore_evas_x11.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- ecore_evas_x11.c 7 Oct 2006 18:45:16 -0000 1.19 +++ ecore_evas_x11.c 8 Oct 2006 10:04:53 -0000 1.20 @@ -41,9 +41,12 @@ static void _popup_window_popup(Etk_Popup_Window *popup_window); static void _popup_window_popdown(Etk_Popup_Window *popup_window); -/* Event and mouse functions */ +/* Event functions */ static void _event_callback_set(void (*callback)(Etk_Event_Type event, Etk_Event_Global event_info)); +static unsigned int _event_timestamp_get(void); static int _event_input_handler_cb(void *data, int type, void *event); + +/* Mouse functions */ static void _mouse_position_get(int *x, int *y); static void _mouse_screen_geometry_get(int *x, int *y, int *w, int *h); @@ -153,6 +156,8 @@ _popup_window_popdown, _event_callback_set, + _event_timestamp_get, + _mouse_position_get, _mouse_screen_geometry_get, @@ -535,6 +540,18 @@ _event_callback = callback; } +/* Gets the current event timestamp */ +static unsigned int _event_timestamp_get(void) +{ + return ecore_x_current_time_get(); +} + +/************************** + * + * Mouse's functions + * + **************************/ + /* Gets the position of the mouse pointer */ static void _mouse_position_get(int *x, int *y) { @@ -1176,7 +1193,7 @@ } else { - int cur_num, new_num; + unsigned int cur_num, new_num; int i, j; Ecore_X_Window_State *cur_state, *new_state; Etk_Bool is_set = ETK_FALSE; ------------------------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs