static Evas_Object *
im_setting_selector_main_window_create(const char *name)
{
- int rots[4] = {0, 90, 180, 270};
- Evas_Object *eo = NULL;
- int w = -1, h = -1;
- eo = elm_win_add(NULL, name, ELM_WIN_BASIC);
-
+ Evas_Object *eo = elm_win_add(NULL, name, ELM_WIN_BASIC);
if (eo) {
+ Evas *e;
+ Ecore_Evas *ee;
+ Evas_Coord w = -1, h = -1;
+
elm_win_title_set(eo, name);
elm_win_borderless_set(eo, EINA_TRUE);
elm_win_alpha_set(eo, EINA_TRUE);
elm_win_conformant_set(eo, EINA_TRUE);
elm_win_autodel_set(eo, EINA_TRUE);
- elm_win_wm_rotation_available_rotations_set(eo, rots, 4);
+ if (elm_win_wm_rotation_supported_get (eo)) {
+ int rots[4] = {0, 90, 180, 270};
+ elm_win_wm_rotation_available_rotations_set(eo, rots, 4);
+ }
+ e = evas_object_evas_get(eo);
+ if (e) {
+ ee = ecore_evas_ecore_evas_get(e);
+ if (ee) {
+ ecore_evas_name_class_set(ee, "SYSTEM_POPUP", "SYSTEM_POPUP");
+ }
+ }
+
elm_win_screen_size_get(eo, NULL, NULL, &w, &h);
if (w > 0 && h > 0) {
evas_object_resize(eo, w, h);