discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3813d0065332f213b32b999b4ea39647297d4559

commit 3813d0065332f213b32b999b4ea39647297d4559
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Jun 8 14:52:40 2015 -0400

    fix shelf visibility state signals
    
    previous behavior resulted in hide being sent when animations began
    instead of at end
---
 src/bin/e_shelf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_shelf.c b/src/bin/e_shelf.c
index e6eac8f..b62d548 100644
--- a/src/bin/e_shelf.c
+++ b/src/bin/e_shelf.c
@@ -431,7 +431,6 @@ e_shelf_toggle(E_Shelf *es, int show)
    else if ((!show) && (!es->hidden) && ((!es->gadcon) || 
(!es->gadcon->editing)) &&
             (es->cfg->autohide))
      {
-        edje_object_signal_emit(es->o_base, "e,state,hidden", "e");
         if (es->instant_delay >= 0.0)
           {
              if (es->hide_timer)
@@ -2023,11 +2022,12 @@ end:
      _e_shelf_toggle_client_fix(es);
    if ((!es->hidden) && es->cfg->autohide_show_action)
      {
-        edje_object_signal_emit(es->o_base, "e,state,hidden", "e");
         es->hidden = 1;
         if (!es->hide_timer)
           es->hide_timer = ecore_timer_add(es->cfg->hide_timeout, 
_e_shelf_cb_hide_animator_timer, es);
      }
+   if (es->hidden && (!es->hide_timer))
+     edje_object_signal_emit(es->o_base, "e,state,hidden", "e");
    return ECORE_CALLBACK_CANCEL;
 }
 

-- 


Reply via email to