#include <Ecore_Wayland.h>
#else
#include <Ecore_X.h>
- #include <tts.h>
#endif
#include <Ecore_Evas.h>
#include <feedback.h>
#include <Elementary.h>
+ #include <tts.h>
#include <vconf.h>
#include <dlog.h>
using namespace scl;
- #ifndef WAYLAND
static tts_h tts = NULL;
- #endif
-
#ifndef WAYLAND
static Eina_Bool _get_default_zone_geometry_info (Ecore_X_Window root, scluint *x, scluint *y, scluint *w, scluint *h)
{
#endif
void accessibility_changed_cb(keynode_t *key, void* data)
{
- #ifndef WAYLAND
int r;
- int enabled;
- if (vconf_get_int(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, &enabled)) {
+ int enabled = 0;
+ if (vconf_get_int(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, &enabled) == 0) {
LOGD("VCONFKEY_SETAPPL_ACCESSIBILITY_TTS : %d, (%p)", enabled, tts);
if (enabled) {
if (tts == NULL) {
}
}
}
- #endif
}
void
sclboolean
CSCLUtilsImplLinux::get_screen_resolution(sclint *x, sclint *y) {
SCL_DEBUG();
- //*x = gdk_screen_get_width(gdk_screen_get_default());
- //*y = gdk_screen_get_height(gdk_screen_get_default());
CSCLContext *context = CSCLContext::get_instance();
static Evas_Coord scr_w = 0, scr_h = 0;
#ifdef WAYLAND
ecore_wl_sync();
ecore_wl_screen_size_get(&scr_w, &scr_h);
- if (scr_w >= 720)
- scr_w = 720;
- else
- scr_w = 600;
#else
scluint w, h;
w = h = 0;
CSCLUtilsImplLinux::play_tts(const sclchar* str) {
SCL_DEBUG();
- #ifndef WAYLAND
if (str) {
int r;
int utt_id = 0;
LOGD("Fail to add text : ret(%d)\n", r);
}
}
- #endif
return TRUE;
}