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:
engelsman 2009-03-07 15:15:29 +00:00
parent 9656a22192
commit 7e83e8e4af

View File

@ -362,32 +362,29 @@ void fl_new_ic()
XNAreaNeeded, &status_area,
XNFontSet, fs, NULL);
if (!XGetIMValues (fl_xim_im, XNQueryInputStyle,
&xim_styles, NULL, NULL))
{
if (!XGetIMValues(fl_xim_im, XNQueryInputStyle,
&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,
@ -432,8 +429,8 @@ void fl_set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win)
char **missing_list;
int missing_count;
char *def_string;
char *fnt=NULL;
bool must_free_fnt=true;
char *fnt = NULL;
bool must_free_fnt =true;
static XIC ic = NULL;