Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_attach.c 


Log Message:
Fix tooltip behavior in dialogs and other windows with redirected containers.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_attach.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- ewl_attach.c        15 Feb 2006 16:52:17 -0000      1.27
+++ ewl_attach.c        8 May 2006 04:33:46 -0000       1.28
@@ -675,6 +675,8 @@
 
        if (!(ewl_attach_tooltip->win))
        {
+               Ewl_Container *redir;
+
                ewl_attach_tooltip->embed = EWL_WIDGET(emb);
 #if 0
                ewl_attach_tooltip->win = ewl_window_new();
@@ -692,8 +694,17 @@
 
                /* XXX this should really be in it's own window */
                ewl_attach_tooltip->win = ewl_hbox_new();
+
+               /*
+                * Temporarily override any redirect settings as this must go
+                * into the top level of the embed.
+                */
+               redir = ewl_container_redirect_get(EWL_CONTAINER(emb));
+               ewl_container_redirect_set(EWL_CONTAINER(emb), NULL);
                ewl_container_child_append(EWL_CONTAINER(emb), 
                                                ewl_attach_tooltip->win);
+               ewl_container_redirect_set(EWL_CONTAINER(emb), redir);
+
                ewl_widget_layer_set(ewl_attach_tooltip->win, 1000);
 
                ewl_callback_prepend(ewl_attach_tooltip->win, 




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