Enlightenment CVS committal
Author : ningerso
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/engines/xcb
Modified Files:
ewl_engine_xcb.c
Log Message:
Convert the selection API to an embed rather than a window and update supporting
engines. Please test specific engines.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/engines/xcb/ewl_engine_xcb.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_engine_xcb.c 12 Nov 2007 22:42:21 -0000 1.2
+++ ewl_engine_xcb.c 6 Dec 2007 07:07:12 -0000 1.3
@@ -81,7 +81,7 @@
static void ee_keyboard_ungrab(Ewl_Window *win);
static int ee_pointer_grab(Ewl_Window *win);
static void ee_pointer_ungrab(Ewl_Window *win);
-static void ee_window_selection_text_set(Ewl_Window *win, const char *txt);
+static void ee_window_selection_text_set(Ewl_Embed *emb, 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);
@@ -840,18 +840,18 @@
}
static void
-ee_window_selection_text_set(Ewl_Window *win, const char *txt)
+ee_window_selection_text_set(Ewl_Embed *emb, const char *txt)
{
DENTER_FUNCTION(DLEVEL_STABLE);
- DCHECK_PARAM_PTR(win);
+ DCHECK_PARAM_PTR(emb);
DCHECK_PARAM_PTR(txt);
- DCHECK_TYPE(win, EWL_WINDOW_TYPE);
+ DCHECK_TYPE(emb, EWL_EMBED_TYPE);
ecore_x_selection_primary_prefetch();
ecore_x_selection_primary_fetch();
if (txt)
ecore_x_selection_primary_set(
- (Ecore_X_Window)win->window,
+ (Ecore_X_Window)emb->canvas_window,
(unsigned char *)txt, strlen(txt) + 1);
else
ecore_x_selection_primary_clear();
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs