Always initialize eldbus 70/299270/1
authoryh106.jung <yh106.jung@samsung.com>
Mon, 25 Sep 2023 01:38:20 +0000 (18:38 -0700)
committeryh106.jung <yh106.jung@samsung.com>
Mon, 25 Sep 2023 01:42:01 +0000 (18:42 -0700)
eldbus has been used not only in ATX but also in clipboard,
so this patch always initailize edbus.

Change-Id: If19a25f676bc57b61c32c5d18fb8b4a7df29f499
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
tizen_src/ewk/efl_integration/public/ewk_main.cc

index 87d38a5..05a292c 100644 (file)
 #include <Ecore_IMF.h>
 #include <Edje.h>
 #include <Eina.h>
+#include <Eldbus.h>
 #include <Evas.h>
 
-#if defined(TIZEN_ATK_SUPPORT)
-#include <Eldbus.h>
-#endif
 
 #include "command_line_efl.h"
 #include "eweb_context.h"
@@ -130,20 +128,16 @@ int ewk_init(void)
     ERR("Could not init edje.");
     goto error_edje;
   }
-#if defined(TIZEN_ATK_SUPPORT)
   if (!eldbus_init()) {
     CRITICAL("Could not load eldbus");
     goto error_eldbus;
   }
-#endif
 
   _ewk_init_web_engine();
   return ++_ewkInitCount;
 
-#if defined(TIZEN_ATK_SUPPORT)
 error_eldbus:
   edje_shutdown();
-#endif
 
 error_edje:
 #if defined(USE_WAYLAND)
@@ -184,9 +178,8 @@ int ewk_shutdown(void)
 
   _ewk_shutdown_web_engine();
 
-#if defined(TIZEN_ATK_SUPPORT)
   eldbus_shutdown();
-#endif
+
   edje_shutdown();
 #if defined(USE_WAYLAND)
 #if TIZEN_VERSION_AT_LEAST(5, 0, 0)
@@ -259,4 +252,4 @@ void _ewk_force_acceleration()
   // app which does not call elm_config_accel_preference_set() function will
   // fail to execute.
   setenv("ELM_ACCEL", "hw", 1);
-}
\ No newline at end of file
+}