discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=31bf6cb7e606fd73a6b7ad6e0fca8d0f5e00323e

commit 31bf6cb7e606fd73a6b7ad6e0fca8d0f5e00323e
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Mar 10 18:29:09 2015 -0400

    don't modify pixmap hash when changing pixmap parent window
    
    moderately certain I originally wrote this to work in the other direction
    and then failed to remove it when I switched to setting parents instead of
    children. regardless, pixmap hash should not be changed here
---
 src/bin/e_pixmap.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c
index ed8552e..1e60c40 100644
--- a/src/bin/e_pixmap.c
+++ b/src/bin/e_pixmap.c
@@ -202,7 +202,6 @@ e_pixmap_free(E_Pixmap *cp)
    if (!cp) return 0;
    if (--cp->refcount) return cp->refcount;
    e_pixmap_image_clear(cp, EINA_FALSE);
-   if (cp->parent) eina_hash_set(pixmaps[cp->type], &cp->parent, NULL);
    eina_hash_del_by_key(pixmaps[cp->type], &cp->win);
    return 0;
 }
@@ -290,10 +289,7 @@ e_pixmap_parent_window_set(E_Pixmap *cp, Ecore_Window win)
    e_pixmap_usable_set(cp, 0);
    e_pixmap_clear(cp);
 
-   if (cp->parent)
-     eina_hash_set(pixmaps[cp->type], &cp->parent, NULL);
    cp->parent = win;
-   if (win) eina_hash_add(pixmaps[cp->type], &win, cp);
 }
 
 EAPI void

-- 


Reply via email to