*
*/
#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;