From 311f17a99971620474e9e93a8701a3a19bb71744 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Tue, 7 Mar 2017 20:34:51 +0900 Subject: [PATCH] elm_toolbar: reduce unnecessary search cost. "more_menu" is not used in Tizen. Change-Id: Ia54a4dfb7259c4ab4a7c6eb1b401fa643ef4224c Signed-off-by: Bowon Ryu --- src/lib/elm_toolbar.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index 054af7c..ba53e30 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -3655,7 +3655,10 @@ _elm_toolbar_shrink_mode_set(Eo *obj, Elm_Toolbar_Data *sd, Elm_Toolbar_Shrink_M elm_toolbar_homogeneous_set(obj, EINA_FALSE); eo_do(obj, elm_interface_scrollable_policy_set (ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF)); - sd->more_item = _item_new(obj, "more_menu", "More", NULL, NULL); + /* TIZEN_ONLY(20170307): Reduces unnecessary search cost. "more_menu" is not used. */ + //sd->more_item = _item_new(obj, "more_menu", "More", NULL, NULL); + sd->more_item = _item_new(obj, NULL, NULL, NULL, NULL); + /* END */ _resizing_eval_item(sd->more_item); } else if (shrink_mode == ELM_TOOLBAR_SHRINK_HIDE) @@ -3669,7 +3672,10 @@ _elm_toolbar_shrink_mode_set(Eo *obj, Elm_Toolbar_Data *sd, Elm_Toolbar_Shrink_M elm_toolbar_homogeneous_set(obj, EINA_FALSE); eo_do(obj, elm_interface_scrollable_policy_set (ELM_SCROLLER_POLICY_AUTO, ELM_SCROLLER_POLICY_OFF)); - sd->more_item = _item_new(obj, "more_menu", "More", NULL, NULL); + /* TIZEN_ONLY(20170307): Reduces unnecessary search cost. "more_menu" is not used. */ + //sd->more_item = _item_new(obj, "more_menu", "More", NULL, NULL); + sd->more_item = _item_new(obj, NULL, NULL, NULL, NULL); + /* END */ _resizing_eval_item(sd->more_item); } else -- 2.7.4