Merge "Revert "Disable TTS temporarily in wayland environment"" into tizen accepted/tizen/mobile/20150528.070037 accepted/tizen/tv/20150528.065935 accepted/tizen/wearable/20150528.070011 submit/tizen_mobile/20150528.000211 submit/tizen_tv/20150528.000205 submit/tizen_wearable/20150528.000217
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 27 May 2015 10:42:26 +0000 (03:42 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 27 May 2015 10:42:26 +0000 (03:42 -0700)
1  2 
scl/utils/linux/sclutils-linux.cpp

  #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
@@@ -162,6 -157,8 +157,6 @@@ CSCLUtilsImplLinux::fini() 
  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;
@@@ -196,7 -197,6 +191,6 @@@ sclboolea
  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;
  }