cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ddeab76da0149384844f36516eceb19b53323669

commit ddeab76da0149384844f36516eceb19b53323669
Author: Taehyub Kim <taehyub....@samsung.com>
Date:   Wed Jul 6 12:50:36 2016 -0700

    elc_popup: move the code making buttons buffer for readability
    
    Summary:
    The code of making buttons buffer is away from related codes.
    @fix
    
    Reviewers: Hermet, Jaehyun_Cho, jpeg, raster, cedric
    
    Subscribers: Blackmole
    
    Differential Revision: https://phab.enlightenment.org/D4133
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elementary/elc_popup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elc_popup.c b/src/lib/elementary/elc_popup.c
index ec476f2..28836ef 100644
--- a/src/lib/elementary/elc_popup.c
+++ b/src/lib/elementary/elc_popup.c
@@ -1181,7 +1181,6 @@ _action_button_set(Evas_Object *obj,
           }
      }
 
-   snprintf(buf, sizeof(buf), "buttons%i", sd->last_button_number);
    if (!sd->action_area)
      {
         sd->action_area = elm_layout_add(sd->main_layout);
@@ -1193,6 +1192,7 @@ _action_button_set(Evas_Object *obj,
         _visuals_set(obj);
      }
 
+   snprintf(buf, sizeof(buf), "buttons%i", sd->last_button_number);
    snprintf(style, sizeof(style), "popup/%s", elm_widget_style_get(obj));
    if (!elm_layout_theme_set(sd->action_area, "popup", buf, style))
      CRI("Failed to set layout!");

-- 


Reply via email to