[JIRA:TT-27] Remove bottom popup 46/36246/1 accepted/tizen/tv/20150304.123149 submit/tizen_tv/20150304.073100
authorSoohye Shin <soohye.shin@samsung.com>
Wed, 4 Mar 2015 07:05:54 +0000 (16:05 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Wed, 4 Mar 2015 07:05:54 +0000 (16:05 +0900)
Fix for https://bugs.tizen.org/jira/browse/TT-27

Change-Id: Ibc5a33e22108a77a131aef8d51b98e25b0c75b23
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
src/cbar.c

index e7cc3f8..213fe92 100644 (file)
@@ -602,42 +602,11 @@ static void _free_popup(struct _cbar_data *bar)
        bar->cur->edit->popup = NULL;
 }
 
-static void _add_banner(struct _cbar_data *bar, char *text)
-{
-       Evas_Object *banner, *win;
-
-       if (!bar || !text) {
-               _ERR("Invalid argument");
-               return;
-       }
-
-       win = elm_object_parent_widget_get(bar->ly);
-       if (!win) {
-               _ERR("failed to get win eo");
-               return;
-       }
-
-       banner = elm_popup_add(win);
-       if (!banner) {
-               _ERR("failed to create popup");
-               return;
-       }
-
-       elm_object_style_set(banner, STYLE_POPUP_BOTTOM_1LINE);
-       elm_popup_orient_set(banner, ELM_POPUP_ORIENT_BOTTOM);
-       elm_object_text_set(banner, text);
-       elm_popup_timeout_set(banner, POPUP_DUR);
-       elm_object_focus_allow_set(banner, EINA_FALSE);
-       evas_object_show(banner);
-}
-
 static void _update_pin(void *data, bool focus);
 
 static void _del_pin(struct _cbar_data *bar)
 {
        struct _cbar_item *item;
-       char buf[BUF_MESSAGE_MAX];
-       const char *name;
        int r;
 
        if (!bar) {
@@ -647,10 +616,6 @@ static void _del_pin(struct _cbar_data *bar)
 
        item = bar->cur;
 
-       name = engine_bar_item_get_name(item->it);
-       snprintf(buf, sizeof(buf), "'%s' %s", _trim((char *)name),
-                       MESSAGE_PIN_BANNER);
-
        r = engine_bar_item_del_pin(bar->eng, item->it);
        if (r < 0) {
                _ERR("failed to del pin");
@@ -660,7 +625,6 @@ static void _del_pin(struct _cbar_data *bar)
        _free_popup(bar);
        _free_item(item->edit);
        _undim_item(bar);
-       _add_banner(bar, buf);
 
        bar->state = CBAR_STATE_CBAR;
 }