Change-Id: I5697a883fa064bfce9d1a750bb5d30dcc7e978a5
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
Name: wifi-efl-ug
Summary: Wi-Fi UI Gadget
Name: wifi-efl-ug
Summary: Wi-Fi UI Gadget
Release: 1
Group: App/Network
License: Flora License
Release: 1
Group: App/Network
License: Flora License
elm_object_item_part_content_set(navi_it, "toolbar_button1", forget_button);
#else
Evas_Object *toolbar = elm_toolbar_add(navi_frame);
elm_object_item_part_content_set(navi_it, "toolbar_button1", forget_button);
#else
Evas_Object *toolbar = elm_toolbar_add(navi_frame);
+ Evas_Object* forget_button = elm_button_add(toolbar);
+
+ elm_object_style_set(forget_button, "naviframe/toolbar/default");
+ elm_object_text_set(forget_button, sc(PACKAGE, I18N_TYPE_Forget));
+
+ evas_object_smart_callback_add(forget_button, "clicked", forget_sk_cb, _detail_data);
+
elm_object_style_set(toolbar, "default");
elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_EXPAND);
elm_toolbar_transverse_expanded_set(toolbar, EINA_TRUE);
elm_object_style_set(toolbar, "default");
elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_EXPAND);
elm_toolbar_transverse_expanded_set(toolbar, EINA_TRUE);
elm_toolbar_select_mode_set(toolbar, ELM_OBJECT_SELECT_MODE_NONE);
elm_toolbar_select_mode_set(toolbar, ELM_OBJECT_SELECT_MODE_NONE);
- elm_toolbar_item_append(toolbar, NULL, sc(PACKAGE, I18N_TYPE_Forget), forget_sk_cb, _detail_data);
+ Evas_Object* btn = elm_toolbar_item_append(toolbar, NULL, NULL, NULL, NULL);
+
+ elm_object_item_part_content_set(btn, "object", forget_button);
elm_object_item_part_content_set(navi_it, "toolbar", toolbar);
elm_object_item_part_content_set(navi_it, "toolbar", toolbar);