Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests


Modified Files:
        ewl_text_editor.c 


Log Message:
Demo DND functionality in the text editor test.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_text_editor.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_text_editor.c   6 Sep 2006 18:36:03 -0000       1.10
+++ ewl_text_editor.c   7 Sep 2006 18:58:15 -0000       1.11
@@ -49,6 +49,7 @@
 static void ete_cb_load(Ewl_Widget *w, void *ev, void *data);
 static void ete_cb_clear(Ewl_Widget *w, void *ev, void *data);
 static void ete_cb_key_down(Ewl_Widget *w, void *ev, void *data);
+static void ete_dnd_cb_realize(Ewl_Widget *w, void *event, void *data);
 
 void 
 test_info(Ewl_Test *test)
@@ -69,6 +70,7 @@
        hbox = ewl_hbox_new();
        ewl_container_child_append(EWL_CONTAINER(box), hbox);
        ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_HFILL);
+       ewl_callback_append(hbox, EWL_CALLBACK_REALIZE, ete_dnd_cb_realize, 
NULL);
        ewl_widget_show(hbox);
 
        {
@@ -172,6 +174,15 @@
        }
 
        return 1;
+}
+
+static void
+ete_dnd_cb_realize(Ewl_Widget *w, void *event __UNUSED__, 
+                                               void *data __UNUSED__)
+{
+       Ewl_Embed *embed;
+       embed = ewl_embed_widget_find(w);
+       ecore_x_dnd_aware_set((Ecore_X_Window)embed->evas_window, TRUE);
 }
 
 static void



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