Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_attach.c
Log Message:
* Only reparent the attach window if it needs to be
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_attach.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ewl_attach.c 9 Jan 2006 02:35:04 -0000 1.23
+++ ewl_attach.c 9 Jan 2006 08:13:45 -0000 1.24
@@ -665,13 +665,17 @@
}
else
{
- if (ewl_attach_tooltip->embed)
-
ewl_container_child_remove(EWL_CONTAINER(ewl_attach_tooltip->embed),
+ if ( (!ewl_attach_tooltip->embed) || ewl_attach_tooltip->embed
!= emb ) {
+ if (ewl_attach_tooltip->embed &&
ewl_attach_tooltip->embed != emb) {
+
ewl_container_child_remove(EWL_CONTAINER(ewl_attach_tooltip->embed),
ewl_attach_tooltip->win);
- ewl_attach_tooltip->embed = EWL_WIDGET(emb);
- ewl_container_child_append(EWL_CONTAINER(emb),
- ewl_attach_tooltip->win);
+ }
+
+ ewl_attach_tooltip->embed = EWL_WIDGET(emb);
+ ewl_container_child_append(EWL_CONTAINER(emb),
+ ewl_attach_tooltip->win);
+ }
}
if (!(ewl_attach_tooltip->box))
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs