Hello, EFL developers.
When building ecore with --disable-xim option, build error occurs.
This patch will solve this build error problem.
Would you please review and apply in svn?
Index: src/modules/immodules/xim/ecore_imf_xim.c
===================================================================
--- src/modules/immodules/xim/ecore_imf_xim.c (revision 66991)
+++ src/modules/immodules/xim/ecore_imf_xim.c (working copy)
@@ -108,6 +108,7 @@ static void xim_destroy_callback(XIM xim,
XPointer call_data);
#endif
+#ifdef ENABLE_XIM
static unsigned int
utf8_offset_to_index(const char *str, int offset)
{
@@ -120,6 +121,7 @@ utf8_offset_to_index(const char *str, int offset)
return index;
}
+#endif
static void
_ecore_imf_context_xim_add(Ecore_IMF_Context *ctx)
@@ -233,6 +235,7 @@ _ecore_imf_context_xim_preedit_string_with_attribu
{
EINA_LOG_DBG("in");
+#ifdef ENABLE_XIM
Ecore_IMF_Context_Data *imf_context_data = ecore_imf_context_data_get(ctx);
_ecore_imf_context_xim_preedit_string_get(ctx, str, cursor_pos);
@@ -260,6 +263,14 @@ _ecore_imf_context_xim_preedit_string_with_attribu
if (start >= 0)
add_feedback_attr (attrs, *str, last_feedback, start, i);
+#else
+ if(str)
+ *str = NULL;
+ if(attrs)
+ *attrs = NULL;
+ if(cursor_pos)
+ *cursor_pos = 0;
+#endif
}
static void
@@ -398,6 +409,7 @@ _ecore_imf_context_xim_use_preedit_set(Ecore_IMF_C
#endif
}
+#ifdef ENABLE_XIM
static void
add_feedback_attr (Eina_List **attrs,
const char *str,
@@ -427,6 +439,7 @@ add_feedback_attr (Eina_List **attrs,
if (feedback & XIMHighlight)
attr->preedit_type = ECORE_IMF_PREEDIT_TYPE_SUB3;
}
+#endif
static void
_ecore_imf_context_xim_cursor_location_set (Ecore_IMF_Context *ctx,
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel