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:
Use the data format now available from ecore_x.
Use the appropriate embed function name for DND data.
Update colorpicker to handle various data formats, should handle more apps and
prevent segvs for 8 bit colors.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ewl_engine_x11.c    29 Sep 2006 02:59:51 -0000      1.15
+++ ewl_engine_x11.c    29 Sep 2006 05:51:41 -0000      1.16
@@ -1046,25 +1046,29 @@
                 window = ewl_window_window_find((void *)ev->win);
                if (window) 
                {
-                       if (data->content == ECORE_X_SELECTION_CONTENT_FILES) 
+                       if (data->content == ECORE_X_SELECTION_CONTENT_FILES)
                        {
                                Ecore_X_Selection_Data_Files* files = ev->data;
-                               
ewl_embed_selection_data_feed(EWL_EMBED(window), 
-                                                       ev->target, 
files->files, 
-                                                       files->num_files);
+                               ewl_embed_dnd_data_feed(EWL_EMBED(window),
+                                                       ev->target,
+                                                       files->files, 
+                                                       files->num_files,
+                                                       data->format);
                        } 
                        else if (data->content == 
ECORE_X_SELECTION_CONTENT_TEXT)
                        {
                                Ecore_X_Selection_Data_Text* text = ev->data;
-                               
ewl_embed_selection_data_feed(EWL_EMBED(window), 
+                               ewl_embed_dnd_data_feed(EWL_EMBED(window),
                                                        ev->target, text->text, 
-                                                       
((Ecore_X_Selection_Data *)text)->length);
+                                                       data->length,
+                                                       data->format);
                        } 
-                       else 
+                       else
                        {
-                               
ewl_embed_selection_data_feed(EWL_EMBED(window), 
+                               ewl_embed_dnd_data_feed(EWL_EMBED(window),
                                                        ev->target, data->data, 
-                                                       data->length);
+                                                       data->length,
+                                                       data->format);
                        }
                }
 



-------------------------------------------------------------------------
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

Reply via email to