[TSAM-9033] Changed popup style to show gradient effect 16/92716/1
authorRahul Dadhich <r.dadhich@samsung.com>
Tue, 18 Oct 2016 08:52:38 +0000 (14:22 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Tue, 18 Oct 2016 08:52:38 +0000 (14:22 +0530)
Change-Id: Icd050a4b1cd9d2928e980732ace2e1ea1abf6505
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/widget/mf-popup.c

index 87fcf68..8f1a2f9 100755 (executable)
@@ -1888,7 +1888,7 @@ Evas_Object *mf_popup_create_popup(void *data, ePopMode popupMode, char *title,
 
                __mf_popup_listby_gl_style_set(ap, popupMode);
                genlist = elm_genlist_add(popup);
-               //elm_genlist_homogeneous_set(genlist, EINA_TRUE);
+               elm_object_style_set(popup, "theme_bg");
                elm_object_focus_set(genlist, EINA_FALSE);
                evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
                evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -1908,17 +1908,17 @@ Evas_Object *mf_popup_create_popup(void *data, ePopMode popupMode, char *title,
                }
 
                box = __mf_popup_box_set(popup, genlist, 2);
-               //elm_object_part_content_set(layout, "elm.swallow.content" , box);
                elm_object_content_set(popup, box);
                evas_object_smart_callback_add(popup, "response", func, param);
                evas_object_smart_callback_add(popup, "block,clicked", (Evas_Smart_Cb)__mf_popup_block_clicked_cb, NULL);
+               break;
+
        default:
                break;
        }
        evas_object_show(popup);
        evas_object_event_callback_add(popup, EVAS_CALLBACK_DEL, __mf_popup_normal_del_cb, ap);
-       if (func && (func == mf_callback_illegal_char_popup_cb || func == mf_popup_show_vk_cb)) {//Fixed P131031-00367, there is the side effect, only when the focus issue,will call the func whck back key.
-               //Fixed the bug(P131011-02665), when pressing the back, no focus at the entry.
+       if (func && (func == mf_callback_illegal_char_popup_cb || func == mf_popup_show_vk_cb)) {
                eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, func, param);
        } else {
                eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, eext_popup_back_cb, NULL);