discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=9e303d329e23713e6ca23753d6a9ee0ad9128c2f

commit 9e303d329e23713e6ca23753d6a9ee0ad9128c2f
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Apr 7 16:07:25 2017 -0400

    re-set list of default desklock bgs when changing to custom bg in config
    
    this list of bgs gets freed a lot, including in this case, which results in
    the apply() function failing later after the bg has been changed
    
    fix T5288
---
 src/modules/conf_display/e_int_config_desklock.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/modules/conf_display/e_int_config_desklock.c 
b/src/modules/conf_display/e_int_config_desklock.c
index cfd2f9a..f22e352 100644
--- a/src/modules/conf_display/e_int_config_desklock.c
+++ b/src/modules/conf_display/e_int_config_desklock.c
@@ -726,6 +726,11 @@ _cb_method_change(void *data, Evas_Object *obj 
EINA_UNUSED, void *event_info EIN
                   cfdata->bgs = eina_list_append(cfdata->bgs, 
desklock_bg_dup(cbg, NULL));
                   ll = ll->next;
                }
+             if (!cfdata->bgs)
+               {
+                  for (x = 0; x < cfdata->zone_count; x++)
+                    cfdata->bgs = eina_list_append(cfdata->bgs, 
desklock_bg_dup(NULL, "theme_desklock_background"));
+               }
         }
         break;
 

-- 


Reply via email to