*
* Copyright 2012 Samsung Electronics Co., Ltd
*
-* Licensed under the Flora License, Version 1.0 (the License);
+* Licensed under the Flora License, Version 1.1 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
-* http://www.tizenopensource.org/license
+* http://floralicense.org/license
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
*
*/
#include <dlog.h>
-#include <Ecore_X.h> /* ecore_x_window_size_get */
-#include <utilX.h> /* KEY_END */
#include <feedback.h>
#include "calc-main.h"
#include "calc-view.h"
{
CALC_FUN_BEG();
Evas_Object *eo;
- int w, h;
+ int w,h;
eo = elm_win_add(NULL, name, ELM_WIN_BASIC);
if (eo) {
elm_win_title_set(eo, name);
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_screen_size_get(eo, NULL, NULL, &w, &h);
+ evas_object_resize(eo, w, h);
}
CALC_FUN_END();
return eo;