Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/test


Modified Files:
        ewl_embed_test.c 


Log Message:
Example for following the embed around the evas.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_embed_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_embed_test.c    2 May 2004 19:44:11 -0000       1.1
+++ ewl_embed_test.c    5 May 2004 18:34:48 -0000       1.2
@@ -2,6 +2,12 @@
 #include <Ecore_Evas.h>
 #include <Ewl.h>
 
+void move_embed_contents_cb(Ewl_Widget *w, void *ev_data, void *user_data)
+{
+       ewl_object_request_geometry(EWL_OBJECT(user_data), CURRENT_X(w),
+                                   CURRENT_Y(w), CURRENT_W(w), CURRENT_H(w));
+}
+
 int main(int argc, char **argv)
 {
        Ecore_Evas *ee;
@@ -28,6 +34,9 @@
        ewl_container_append_child(EWL_CONTAINER(embed), button);
        ewl_widget_show(button);
 
+       ewl_callback_append(embed, EWL_CALLBACK_CONFIGURE,
+                           move_embed_contents_cb, button);
+
        ecore_main_loop_begin();
 
        return 0;




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to