#include <app.h>
#include <vconf.h>
-#include <Ecore_X.h>
#include <system_info.h>
#include "lockscreen.h"
Evas_Object *eo;
int w, h;
- eo = elm_win_add(NULL, name, ELM_WIN_BASIC);
+ eo = elm_win_add(NULL, name, ELM_WIN_NOTIFICATION);
if (!eo) {
LOGE("[%s:%d] eo is NULL", __func__, __LINE__);
return NULL;
elm_win_title_set(eo, name);
elm_win_borderless_set(eo, EINA_TRUE);
evas_object_smart_callback_add(eo, "delete,request", win_del, NULL);
- ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h);
- evas_object_resize(eo, w, h);
elm_win_alpha_set(eo, EINA_TRUE);
return eo;
Evas_Object *win = NULL;
- ecore_x_window_size_get(ecore_x_window_root_first_get(), &ad->win_w, &ad->win_h);
- LOGD("[%s:%d] win_w : %d, win_h : %d", __func__, __LINE__, ad->win_w, ad->win_h);
-
- win = create_win(PACKAGE);
+ win = create_win("LOCK_SCREEN");
if (win == NULL)
return false;
ad->win = win;
elm_win_conformant_set(ad->win, EINA_TRUE);
- evas_object_resize(win, ad->win_w, ad->win_h);
evas_object_event_callback_add(win, EVAS_CALLBACK_RESIZE, resize_cb, NULL);
int ret = _app_create(ad);
* limitations under the License.
*/
-#include <Ecore_X.h>
#include <Elementary.h>
#include <utilX.h>
#include <vconf.h>
return;
}
- 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_NORMAL);
utilx_set_window_opaque_state(ecore_x_display_get(), xwin, UTILX_OPAQUE_STATE_ON);
elm_win_resize_object_add(ad->win, conform);
elm_object_content_set(conform, eo);
evas_object_show(conform);
- evas_object_resize(eo, ad->win_w, ad->win_h);
return eo;
}
static Eina_Bool _init_widget_cb(void *data)
{
struct appdata *ad = data;
+ int width, height;
LOGD("[ == %s == ]", __func__);
if (ad == NULL)
return ECORE_CALLBACK_CANCEL;
+ elm_win_screen_size_get(ad->win, NULL, NULL, &width, &height);
+
ad->slider = _make_slider(ad->ly_main);
- evas_object_resize(ad->slider, ad->win_w, SLIDER_RATIO_H * ad->win_h);
- evas_object_move(ad->slider, 0, SLIDER_RATIO_Y * ad->win_h);
+ evas_object_resize(ad->slider, width, SLIDER_RATIO_H * height);
+ evas_object_move(ad->slider, 0, SLIDER_RATIO_Y * height);
evas_object_show(ad->slider);
evas_object_geometry_get(
edje_object_part_object_get(_EDJ(ad->slider), "lock.wrapper.image.l"),
int _app_create(struct appdata *ad)
{
+ Ecore_Evas *ee;
if (ad == NULL)
return -1;
LOGD("[ == %s == ]", __func__);
- ecore_x_icccm_name_class_set(elm_win_xwindow_get(ad->win), "LOCK_SCREEN", "LOCK_SCREEN");
+ ee = ecore_evas_object_ecore_evas_get(ad->win);
+ ecore_evas_name_class_set(ee, "LOCK_SCREEN", "LOCK_SCREEN");
+
evas_object_show(ad->win);
_set_win_property(ad->win);