BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(cynara-client)
BuildRequires: pkgconfig(pkgmgr-installer)
-BuildRequires: pkgconfig(ecore-wayland)
BuildRequires: pkgconfig(iniparser)
BuildRequires: pkgconfig(libsmack)
#include <vconf.h>
#include <vconf-keys.h>
#include <unicode/uloc.h>
-#include <Ecore_Wayland.h>
#include <aul.h>
#include <tzplatform_config.h>
#include <pkgmgr-info.h>
#include <pwd.h>
#include <aul_widget.h>
+#include <system_info.h>
#include "widget_errno.h"
#include "debug.h"
char *path;
int length;
int w, h;
+ int ret;
length = strlen(RESOLUTION_PATH_FORMAT) + 12;
path = calloc(1, length);
return NULL;
}
- ecore_wl_screen_size_get(&w, &h);
+ ret = system_info_get_platform_int(
+ "http://tizen.org/feature/screen.width", &w);
+ if (ret != SYSTEM_INFO_ERROR_NONE) {
+ _E("fail to get width: %d", ret);
+ free(path);
+ return NULL;
+ }
+
+ ret = system_info_get_platform_int(
+ "http://tizen.org/feature/screen.height", &h);
+ if (ret != SYSTEM_INFO_ERROR_NONE) {
+ _E("fail to get height: %d", ret);
+ free(path);
+ return NULL;
+ }
_D("screen size : %d %d", w, h);
snprintf(path, length, RESOLUTION_PATH_FORMAT, w, h);