toast_popup/ticker: use all rotation values 35/96835/1
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Thu, 10 Nov 2016 09:54:31 +0000 (10:54 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Thu, 10 Nov 2016 09:54:31 +0000 (10:54 +0100)
Restore full spectrum of popup rotations. The proper rotation value
should be chosen by window manager instead by application.

Change-Id: I403579908addf7677cef379dee20bbd4495231b9

src/modules/information/toast_popup.c
src/ticker.c

index 7e5bcd8..f4badcf 100644 (file)
@@ -84,9 +84,8 @@ static void _post_toast_message(char *message)
        elm_win_title_set(toast_window, "toast");
 
        if (elm_win_wm_rotation_supported_get(toast_window)) {
-               int rots[1] = { s_info.app_data->win.angle };
-               elm_win_wm_rotation_available_rotations_set(toast_window,
-                               (const int *)(&rots), ARRAY_SIZE(rots));
+               int rots[4] = { 0, 90, 180, 270 };
+               elm_win_wm_rotation_available_rotations_set(toast_window, rots, ARRAY_SIZE(rots));
        }
        evas_object_show(toast_window);
 
index 2be5b1c..9780bae 100644 (file)
@@ -610,7 +610,7 @@ static Evas_Object *_ticker_window_create(struct appdata *ad)
        evas_object_move(win, 0, 0);
 
        if (elm_win_wm_rotation_supported_get(win)) {
-               int rots[1] = { ad->win.angle };
+               int rots[4] = { 0, 90, 180, 270 };
                elm_win_wm_rotation_available_rotations_set(win, rots, ARRAY_SIZE(rots));
        }