Make conformant expand EVAS_HINT_EXPAND instead of 0
[apps/native/ug-wifi-direct.git] / popup-wifidirect / src / wfd-app-main.c
index 45f4c49..2aba656 100644 (file)
@@ -33,7 +33,6 @@
 #include <feedback.h>
 #include <wifi-direct.h>
 #include <efl_util.h>
-#include <efl_assist.h>
 #include <linux/unistd.h>
 #include <vconf.h>
 
@@ -93,16 +92,17 @@ static bool _app_create(void *data)
        memset(ad->popup_data, 0x0, sizeof(wfd_popup_t));
        ad->win = _create_win(NULL, PACKAGE);
 
+       /* set rotation */
        if (elm_win_wm_rotation_supported_get(ad->win)) {
-               int rots[4] = { 0, 90, 180, 270 };
-               elm_win_wm_rotation_available_rotations_set(ad->win, rots, 1);
+               int rots[4] = {0, 90, 180, 270};
+               elm_win_wm_rotation_available_rotations_set(ad->win, (const int *)(&rots), 4);
        }
 
        ad->conformant = elm_conformant_add(ad->win);
        assertm_if(NULL == ad->conformant, "conformant is NULL!!");
        elm_win_conformant_set(ad->win, EINA_TRUE);
        elm_win_resize_object_add(ad->win, ad->conformant);
-       evas_object_size_hint_weight_set(ad->conformant, EVAS_HINT_EXPAND, 0.0);
+       evas_object_size_hint_weight_set(ad->conformant, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(ad->conformant, EVAS_HINT_FILL, 0.0);
        evas_object_show(ad->conformant);