The patch adds missing calls for ecore initializtion
on wayland.
Change-Id: Ia243ce2ebb0d0e8edce2d357b2efbbd4613ccb7f
#include <Ecore.h>
#ifdef HAVE_ECORE_X
#include <Ecore_X.h>
+#else
+#include <Ecore_Wayland.h>
#endif
#include <WebCore/RunLoop.h>
#include <runtime/InitializeThreading.h>
#ifdef HAVE_ECORE_X
if (!ecore_x_init(0))
return 1;
+#else
+ if(!ecore_wl_init(0))
+ return 1;
#endif
JSC::initializeThreading();
#ifdef HAVE_ECORE_X
#include <Ecore_X.h>
+#else
+#include <Ecore_Wayland.h>
#endif
static int _ewkInitCount = 0;
CRITICAL("could not init ecore_x.");
goto error_ecore_x;
}
+#else
+ if(!ecore_wl_init(0)) {
+ CRITICAL("could not init ecore_wl.");
+ goto error_ecore_wl;
+ }
#endif
g_type_init();
#ifdef HAVE_ECORE_X
error_ecore_x:
ecore_imf_shutdown();
+#else
+error_ecore_wl:
+ ecore_imf_shutdown();
#endif
error_ecore_imf:
ecore_evas_shutdown();