hermet pushed a commit to branch master.

commit b4e1b33cbea974e7e05d61a1c37c21f97ff7eabd
Author: ChunEon Park <[email protected]>
Date:   Wed Jul 17 10:50:08 2013 +0900

    elementary/layout - Send visible/hidden signals whenever contents are 
set/unset (not only icon and end parts)
---
 ChangeLog            | 4 ++++
 NEWS                 | 1 +
 src/lib/elm_layout.c | 8 ++------
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index cb25155..0aa1105 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1510,3 +1510,7 @@
         the imf is available, the keyboard mode should be decided by ime, but
         not entry. This prevents the asynchronous states between ime and
         conformant.
+
+2013-07-17  ChunEon Park (Hermet)
+
+        * Layout : Send visible/hidden signals whenever contents are set/unset 
(not only icon and end parts)
diff --git a/NEWS b/NEWS
index 4624a5b..44e6b82 100644
--- a/NEWS
+++ b/NEWS
@@ -296,6 +296,7 @@ Additions:
    * Elm_Win_Trap and elm_win_trap_set() to allow e17 integration.
    * elm_flip_go_to()
    * On focus loss, Elm_Spinner properly hide Elm_Entry and display label 
properly.
+   * Layout : Send visible/hidden signals whenever contents are set/unset (not 
only icon and end parts)
 
 Fixes:
 
diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c
index a8d7417..071e71b 100644
--- a/src/lib/elm_layout.c
+++ b/src/lib/elm_layout.c
@@ -132,10 +132,7 @@ _icon_signal_emit(Elm_Layout_Smart_Data *sd,
    char buf[1024];
    const char *type;
 
-   if (sub_d->type != SWALLOW ||
-       (strcmp("elm.swallow.icon", sub_d->part) &&
-        (strcmp("elm.swallow.end", sub_d->part))))
-     return;
+   if (sub_d->type != SWALLOW) return;
 
    if (strncmp(sub_d->part, "elm.swallow.", sizeof("elm.swallow.") - 1) == 0)
      type = sub_d->part + sizeof("elm.swallow.") - 1;
@@ -160,8 +157,7 @@ _text_signal_emit(Elm_Layout_Smart_Data *sd,
    char buf[1024];
    const char *type;
 
-   if (sub_d->type != TEXT || strcmp("elm.text", sub_d->part))
-     return;
+   if (sub_d->type != TEXT) return;
 
    Elm_Widget_Smart_Data *wd = eo_data_scope_get(sd->obj, 
ELM_OBJ_WIDGET_CLASS);
 

-- 

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to