Fl_x.cxx: replaced tabs and corrected indentation (STR #2129)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
9656a22192
commit
7e83e8e4af
15
src/Fl_x.cxx
15
src/Fl_x.cxx
@ -363,31 +363,28 @@ void fl_new_ic()
|
||||
XNFontSet, fs, NULL);
|
||||
|
||||
if (!XGetIMValues(fl_xim_im, XNQueryInputStyle,
|
||||
&xim_styles, NULL, NULL))
|
||||
{
|
||||
&xim_styles, NULL, NULL)) {
|
||||
int i;
|
||||
XIMStyle *style;
|
||||
for (i = 0, style = xim_styles->supported_styles;
|
||||
i < xim_styles->count_styles; i++, style++)
|
||||
{
|
||||
i < xim_styles->count_styles; i++, style++) {
|
||||
if (*style == (XIMPreeditPosition | XIMStatusArea)) {
|
||||
sarea = 1;
|
||||
predit = 1;
|
||||
} else if (*style ==
|
||||
(XIMPreeditPosition | XIMStatusNothing))
|
||||
{
|
||||
} else if (*style == (XIMPreeditPosition | XIMStatusNothing)) {
|
||||
predit = 1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
XFree(xim_styles);
|
||||
|
||||
if (sarea) fl_xim_ic = XCreateIC(fl_xim_im,
|
||||
if (sarea) {
|
||||
fl_xim_ic = XCreateIC(fl_xim_im,
|
||||
XNInputStyle, (XIMPreeditPosition | XIMStatusArea),
|
||||
XNPreeditAttributes, preedit_attr,
|
||||
XNStatusAttributes, status_attr,
|
||||
NULL);
|
||||
}
|
||||
|
||||
if (!fl_xim_ic && predit) {
|
||||
fl_xim_ic = XCreateIC(fl_xim_im,
|
||||
|
Loading…
Reference in New Issue
Block a user