forked from enlightenment/efl
fix all compile warnings when xim is disabled
SVN revision: 67194
This commit is contained in:
parent
421685162a
commit
4d56b824d2
|
@ -140,6 +140,8 @@ _ecore_imf_context_xim_add(Ecore_IMF_Context *ctx)
|
||||||
imf_context_data->in_toplevel = EINA_FALSE;
|
imf_context_data->in_toplevel = EINA_FALSE;
|
||||||
|
|
||||||
ecore_imf_context_data_set(ctx, imf_context_data);
|
ecore_imf_context_data_set(ctx, imf_context_data);
|
||||||
|
#else
|
||||||
|
(void)ctx;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,6 +179,8 @@ _ecore_imf_context_xim_del(Ecore_IMF_Context *ctx)
|
||||||
set_ic_client_window(ctx, 0);
|
set_ic_client_window(ctx, 0);
|
||||||
|
|
||||||
imf_context_data_destroy(imf_context_data);
|
imf_context_data_destroy(imf_context_data);
|
||||||
|
#else
|
||||||
|
(void)ctx;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,6 +191,9 @@ _ecore_imf_context_xim_client_window_set(Ecore_IMF_Context *ctx,
|
||||||
EINA_LOG_DBG("in");
|
EINA_LOG_DBG("in");
|
||||||
#ifdef ENABLE_XIM
|
#ifdef ENABLE_XIM
|
||||||
set_ic_client_window(ctx, (Ecore_X_Window)((Ecore_Window)window));
|
set_ic_client_window(ctx, (Ecore_X_Window)((Ecore_Window)window));
|
||||||
|
#else
|
||||||
|
(void)ctx;
|
||||||
|
(void)window;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,6 +228,7 @@ _ecore_imf_context_xim_preedit_string_get(Ecore_IMF_Context *ctx,
|
||||||
if(cursor_pos)
|
if(cursor_pos)
|
||||||
*cursor_pos = imf_context_data->preedit_cursor;
|
*cursor_pos = imf_context_data->preedit_cursor;
|
||||||
#else
|
#else
|
||||||
|
(void)ctx;
|
||||||
if(str)
|
if(str)
|
||||||
*str = NULL;
|
*str = NULL;
|
||||||
if(cursor_pos)
|
if(cursor_pos)
|
||||||
|
@ -265,6 +273,7 @@ _ecore_imf_context_xim_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx
|
||||||
if (start >= 0)
|
if (start >= 0)
|
||||||
add_feedback_attr (attrs, *str, last_feedback, start, i);
|
add_feedback_attr (attrs, *str, last_feedback, start, i);
|
||||||
#else
|
#else
|
||||||
|
(void)ctx;
|
||||||
if(str)
|
if(str)
|
||||||
*str = NULL;
|
*str = NULL;
|
||||||
if(attrs)
|
if(attrs)
|
||||||
|
@ -297,6 +306,8 @@ _ecore_imf_context_xim_focus_in(Ecore_IMF_Context *ctx)
|
||||||
|
|
||||||
XSetICFocus(ic);
|
XSetICFocus(ic);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)ctx;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -315,6 +326,8 @@ _ecore_imf_context_xim_focus_out(Ecore_IMF_Context *ctx)
|
||||||
if(ic)
|
if(ic)
|
||||||
XUnsetICFocus(ic);
|
XUnsetICFocus(ic);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)ctx;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -388,6 +401,8 @@ _ecore_imf_context_xim_reset(Ecore_IMF_Context *ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
XFree (result);
|
XFree (result);
|
||||||
|
#else
|
||||||
|
(void)ctx;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -407,6 +422,9 @@ _ecore_imf_context_xim_use_preedit_set(Ecore_IMF_Context *ctx,
|
||||||
imf_context_data->use_preedit = use_preedit;
|
imf_context_data->use_preedit = use_preedit;
|
||||||
reinitialize_ic(ctx);
|
reinitialize_ic(ctx);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)ctx;
|
||||||
|
(void)use_preedit;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -470,6 +488,11 @@ _ecore_imf_context_xim_cursor_location_set (Ecore_IMF_Context *ctx,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
XFree(preedit_attr);
|
XFree(preedit_attr);
|
||||||
|
#else
|
||||||
|
(void)ctx;
|
||||||
|
(void)x;
|
||||||
|
(void)y;
|
||||||
|
(void)h;
|
||||||
#endif
|
#endif
|
||||||
(void)(w); // yes w is unused, but only a bi-product of the algorithm
|
(void)(w); // yes w is unused, but only a bi-product of the algorithm
|
||||||
}
|
}
|
||||||
|
@ -691,6 +714,9 @@ _ecore_imf_context_xim_filter_event(Ecore_IMF_Context *ctx,
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
|
(void)ctx;
|
||||||
|
(void)type;
|
||||||
|
(void)event;
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue