bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/misc/entrance.git/commit/?id=c810ebf057acdc0cb9e8664d103931ad8a970ab3

commit c810ebf057acdc0cb9e8664d103931ad8a970ab3
Author: Marcel Hollerbach <[email protected]>
Date:   Tue May 13 15:49:12 2014 +0200

    entrance: now the pools are set correctly.
---
 src/bin/entrance_gui.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/bin/entrance_gui.c b/src/bin/entrance_gui.c
old mode 100755
new mode 100644
index 17f61fa..714d1fe
--- a/src/bin/entrance_gui.c
+++ b/src/bin/entrance_gui.c
@@ -458,7 +458,7 @@ entrance_gui_xsessions_get(void)
 void
 entrance_gui_conf_set(const Entrance_Conf_Gui_Event *conf)
 {
-  if (_gui->background_pool)
+   if (_gui->background_pool && conf->background_pool)
      {
         Entrance_Image *img;
         EINA_LIST_FREE(_gui->background_pool, img)
@@ -467,9 +467,10 @@ entrance_gui_conf_set(const Entrance_Conf_Gui_Event *conf)
              eina_stringshare_del(img->group);
              free(img);
           }
-        _gui->background_pool = conf->background_pool;
      }
-   if (_gui->icon_pool)
+   if (conf->background_pool)
+     _gui->background_pool = conf->background_pool;
+   if (_gui->icon_pool && conf->icon_pool)
      {
         Entrance_Image *img;
         EINA_LIST_FREE(_gui->icon_pool, img)
@@ -478,8 +479,9 @@ entrance_gui_conf_set(const Entrance_Conf_Gui_Event *conf)
              eina_stringshare_del(img->group);
              free(img);
           }
-        _gui->icon_pool = conf->icon_pool;
      }
+   if (conf->icon_pool)
+     _gui->icon_pool = conf->icon_pool;
    if (_gui->bg.path != conf->bg.path)
      {
         if ((conf->bg.path) && (*conf->bg.path))

-- 


Reply via email to