Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_engine_x11.c 


Log Message:
- move ewl_window_dnd_aware_set to ewl_embed_dnd_aware_set
- change ewl_dnd_provides_* to ewl_dnd_provided_*
- change ewl_dnd_accepts_* to ewl_dnd_accepted_*
- formating and other cleanups

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewl_engine_x11.c    7 Sep 2006 18:52:14 -0000       1.11
+++ ewl_engine_x11.c    8 Sep 2006 01:05:16 -0000       1.12
@@ -72,7 +72,7 @@
 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_geometry_set(Ewl_Window *win, int *width, int *height);
-static void ee_dnd_aware_set(Ewl_Window *win);
+static void ee_dnd_aware_set(Ewl_Embed *embed);
 
 static Ewl_Engine_Info engine_funcs = {
        {
@@ -678,14 +678,13 @@
 }
 
 static void
-ee_dnd_aware_set(Ewl_Window *win)
+ee_dnd_aware_set(Ewl_Embed *embed)
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR("win", win);
-       DCHECK_TYPE("win", win, EWL_WINDOW_TYPE);
+       DCHECK_PARAM_PTR("embed", embed);
+       DCHECK_TYPE("embed", embed, EWL_EMBED_TYPE);
 
-       ecore_x_dnd_aware_set((Ecore_X_Window)win->window,
-                       (!!(win->flags & EWL_FLAG_PROPERTY_DND_AWARE)));
+       ecore_x_dnd_aware_set((Ecore_X_Window)embed->evas_window, TRUE);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -1056,11 +1055,14 @@
                        {
                                Ecore_X_Selection_Data_Text* text = ev->data;
                                printf("We've got some text! - '%s'\n", 
text->text);
-                               
ewl_embed_selection_data_feed(EWL_EMBED(window), ev->target, text->text, 
((Ecore_X_Selection_Data *)text)->length);
+                               
ewl_embed_selection_data_feed(EWL_EMBED(window), 
+                                                       ev->target, text->text, 
+                                                       
((Ecore_X_Selection_Data *)text)->length);
                        } 
                        else 
                        {
-                               printf("\nUnknown DND selection received, type: 
%d target: %s\n", data->content, ev->target);
+                               printf("\nUnknown DND selection received, type: 
%d target: %s\n", 
+                                                               data->content, 
ev->target);
                                printf("\tData length: %d\n", data->length);
                        }
                }



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to