From: Enlightenment C. <no...@cv...> - 2006-11-04 16:58:37
|
Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/engines/x11 Modified Files: ewl_engine_x11.c Log Message: - add ewl_popup (a smart placing override window) - use ewl_popup for combo, menu and tooltip =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- ewl_engine_x11.c 27 Oct 2006 04:26:56 -0000 1.23 +++ ewl_engine_x11.c 4 Nov 2006 16:58:05 -0000 1.24 @@ -73,6 +73,7 @@ static void ee_window_selection_text_set(Ewl_Window *win, const char *txt); static void ee_window_geometry_set(Ewl_Window *win, int *width, int *height); static void ee_dnd_aware_set(Ewl_Embed *embed); +static void ee_desktop_size_get(Ewl_Embed *embed, int *w, int *h); static int ee_pointer_data_new(Ewl_Embed *embed, int *data, int w, int h); static void ee_pointer_free(Ewl_Embed *embed, int pointer); @@ -103,7 +104,8 @@ ee_pointer_ungrab, ee_window_selection_text_set, ee_window_geometry_set, - ee_dnd_aware_set + ee_dnd_aware_set, + ee_desktop_size_get, }; static void *pointer_funcs[EWL_ENGINE_POINTER_MAX] = @@ -707,6 +709,18 @@ DCHECK_TYPE("embed", embed, EWL_EMBED_TYPE); ecore_x_dnd_aware_set((Ecore_X_Window)embed->evas_window, TRUE); + + DLEAVE_FUNCTION(DLEVEL_STABLE); +} + +static void +ee_desktop_size_get(Ewl_Embed *embed, int *w, int *h) +{ + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("embed", embed); + DCHECK_TYPE("embed", embed, EWL_EMBED_TYPE); + + ecore_x_window_size_get(0, w, h); DLEAVE_FUNCTION(DLEVEL_STABLE); } |