Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/engines/x11


Modified Files:
        ewl_engine_x11.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/x11/ewl_engine_x11.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -3 -r1.55 -r1.56
--- ewl_engine_x11.c    12 Nov 2007 22:42:21 -0000      1.55
+++ ewl_engine_x11.c    6 Dec 2007 07:07:12 -0000       1.56
@@ -82,7 +82,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);
@@ -837,16 +837,16 @@
 }
 
 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);
 
        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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to