Subject: [E-devel] [PATCH] fix build error of ecore_imf_xim when using --disable-xim option
Date: Mon, 9 Jan 2012 19:53:17 +0900
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?
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@67191
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
XPointer call_data);
#endif
+#ifdef ENABLE_XIM
static unsigned int
utf8_offset_to_index(const char *str, int offset)
{
return index;
}
+#endif
static void
_ecore_imf_context_xim_add(Ecore_IMF_Context *ctx)
{
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);
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
#endif
}
+#ifdef ENABLE_XIM
static void
add_feedback_attr (Eina_List **attrs,
const char *str,
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,