Remove the code to set a window type
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 1 Apr 2013 01:14:11 +0000 (10:14 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 1 Apr 2013 01:14:11 +0000 (10:14 +0900)
We set a window type to notification, so BT system popup was always
shown on top of the windows. But we decide to follow the orginal UX
guideline. ([Tizen] Basic interaction v3.6_201303019)

Change-Id: Ib5c0ace496edd09cf93990cb5a5148369a21b3d8

src/bt-syspopup.c

index fdc5cb4..955487f 100644 (file)
@@ -587,7 +587,6 @@ static void __bluetooth_draw_popup(struct bt_popup_appdata *ad,
                        Evas_Object *obj, void *event_info))
 {
        char temp_str[BT_TITLE_STR_MAX_LEN+BT_TEXT_EXTRA_LEN] = { 0 };
-       Ecore_X_Window xwin;
        Evas_Object *btn1;
        Evas_Object *btn2;
 
@@ -625,11 +624,6 @@ static void __bluetooth_draw_popup(struct bt_popup_appdata *ad,
                evas_object_smart_callback_add(btn1, "clicked", func, ad);
        }
 
-       xwin = elm_win_xwindow_get(ad->popup);
-       ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION);
-       utilx_set_system_notification_level(ecore_x_display_get(), xwin,
-                               UTILX_NOTIFICATION_LEVEL_HIGH);
-
        evas_object_show(ad->popup);
        evas_object_show(ad->win_main);
 
@@ -651,7 +645,6 @@ static void __bluetooth_draw_input_view(struct bt_popup_appdata *ad,
        Evas_Object *check = NULL;
        Evas_Object *l_button = NULL;
        Evas_Object *r_button = NULL;
-       Ecore_X_Window xwin;
 
        if (ad == NULL || ad->win_main == NULL) {
                BT_ERR("Invalid parameter");
@@ -757,11 +750,6 @@ static void __bluetooth_draw_input_view(struct bt_popup_appdata *ad,
        elm_object_part_content_set(layout, "elm.swallow.entry", editfield);
        elm_object_part_content_set(layout, "elm.swallow.end", check);
 
-       xwin = elm_win_xwindow_get(ad->popup);
-       ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION);
-       utilx_set_system_notification_level(ecore_x_display_get(), xwin,
-                               UTILX_NOTIFICATION_LEVEL_HIGH);
-
        evas_object_show(layout);
        evas_object_show(content);
        evas_object_show(passpopup);