elm/ews: fix theme apply.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Wed, 5 Oct 2011 23:43:03 +0000 (23:43 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Wed, 5 Oct 2011 23:43:03 +0000 (23:43 +0000)
eina_hash_pointer IS DISGUSTING! :-( It does not store the pointer,
but allocates something to hold the pointer, giving it back to you in
an unexpected way :-/

SVN revision: 63858

src/lib/elu_ews_wm.c

index 528e801..578718d 100644 (file)
@@ -441,7 +441,7 @@ _elm_ews_wm_rescale(Elm_Theme *th, Eina_Bool use_theme)
    if (!use_theme)
      {
         EINA_ITERATOR_FOREACH(it, tp)
-          _elm_ews_wm_border_theme_set((void*)tp->key, tp->data, NULL);
+          _elm_ews_wm_border_theme_set(*(void**)tp->key, tp->data, NULL);
 
         if (_ews_bg)
           _elm_theme_set(NULL, _ews_bg, "ews", "background", "default");
@@ -449,7 +449,7 @@ _elm_ews_wm_rescale(Elm_Theme *th, Eina_Bool use_theme)
    else
      {
         EINA_ITERATOR_FOREACH(it, tp)
-          _elm_ews_wm_border_theme_set((void*)tp->key, tp->data, th);
+          _elm_ews_wm_border_theme_set(*(void**)tp->key, tp->data, th);
 
         if (_ews_bg)
           _elm_theme_set(th, _ews_bg, "ews", "background", "default");