okra pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=8d07ad7845f03896ce0fea09771deeb68607a31c

commit 8d07ad7845f03896ce0fea09771deeb68607a31c
Author: Stephen 'Okra' Houston <[email protected]>
Date:   Mon Mar 13 17:40:43 2017 -0500

    Luncher: Don't try to perform aspect set on a deleted bar.
---
 src/modules/luncher/bar.c     | 5 ++++-
 src/modules/luncher/luncher.h | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c
index abf3e5e..e6e8e0e 100644
--- a/src/modules/luncher/bar.c
+++ b/src/modules/luncher/bar.c
@@ -262,7 +262,8 @@ _bar_icon_del(Instance *inst, Icon *ic)
    inst->icons = eina_list_remove(inst->icons, ic);
    if (ic->preview)
      _bar_icon_preview_hide(ic);
-   _bar_aspect(inst);
+   if (!inst->main_del)
+     _bar_aspect(inst);
    evas_object_del(ic->o_spacera);
    evas_object_del(ic->o_spacerb);
    evas_object_del(ic->o_icon);
@@ -1761,6 +1762,7 @@ _bar_del(void *data, Evas *e EINA_UNUSED, Evas_Object 
*obj EINA_UNUSED, void *ev
 {
    Instance *inst = data;
 
+   inst->main_del = EINA_TRUE;
    _bar_empty(inst);
    e_object_del(E_OBJECT(inst->order));
    E_FREE_FUNC(inst->drop_handler, evas_object_del);
@@ -2149,6 +2151,7 @@ bar_create(Evas_Object *parent, int *id, 
E_Gadget_Site_Orient orient EINA_UNUSED
    inst->inside = EINA_FALSE;
    inst->effect = EINA_FALSE;
    inst->bar = EINA_TRUE;
+   inst->main_del = EINA_FALSE;
    inst->icons_desktop_hash = eina_hash_string_superfast_new(NULL);
    inst->icons_clients_hash = eina_hash_pointer_new(NULL);
    inst->o_main = elm_layout_add(parent);
diff --git a/src/modules/luncher/luncher.h b/src/modules/luncher/luncher.h
index bdda494..b29bccf 100644
--- a/src/modules/luncher/luncher.h
+++ b/src/modules/luncher/luncher.h
@@ -59,6 +59,7 @@ struct _Instance
    Ecore_Job           *resize_job;
    Ecore_Job           *recalc_job;
    E_Comp_Object_Mover *iconify_provider;
+   Eina_Bool            main_del;
    Eina_Bool            bar;
    Eina_Bool            inside;
    Eina_Bool            effect;

-- 


Reply via email to