X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Fprograms%2Fdtstyle%2FI18nMain.c;h=f88b86e0b2f8c31c26dd2c7c969f035d4f30e90a;hb=4f5e7fe5e3b8ef48be3b7129d0a4411c2a100170;hp=1a3afbeef10c6c8d3dd3d15bf717c9fc86de7210;hpb=a493d3588d05bda1017aefb15b5a558f9b9d9eed;p=oweals%2Fcde.git diff --git a/cde/programs/dtstyle/I18nMain.c b/cde/programs/dtstyle/I18nMain.c index 1a3afbee..f88b86e0 100644 --- a/cde/programs/dtstyle/I18nMain.c +++ b/cde/programs/dtstyle/I18nMain.c @@ -16,7 +16,7 @@ * details. * * You should have received a copy of the GNU Lesser General Public - * License along with these librararies and programs; if not, write + * License along with these libraries and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ @@ -46,6 +46,7 @@ /*+++++++++++++++++++++++++++++++++++++++*/ #include +#include #include #include @@ -509,7 +510,7 @@ BuildI18nDlg( n = 0; XtSetArg(args[n], XmNcomboBoxType, XmDROP_DOWN_COMBO_BOX); n++; i18n.serverHostCB = - (Widget) XmCreateComboBox(inputMethodForm, "serverHostCB", args, n); + (Widget) (intptr_t) XmCreateComboBox(inputMethodForm, "serverHostCB", args, n); XtAddCallback(XtNameToWidget(i18n.serverHostCB, "Text"), XmNactivateCallback, ServerHostCB, NULL); @@ -560,7 +561,7 @@ BuildI18nDlg( n = 0; XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); n++; i18n.preeditTypeList = - (Widget) XmCreateList(preeditTypeForm, "preeditTypeList", args, n); + (Widget) (intptr_t) XmCreateList(preeditTypeForm, "preeditTypeList", args, n); n = 0; string = CMPSTR((char *)GETMESSAGE(19, 10, "Move Up")); @@ -1205,7 +1206,9 @@ saveI18n( sprintf(bufr, "%s*i18nDlg.y: %d\n", bufr, y); sprintf(bufr, "%s*i18nDlg.width: %d\n", bufr, width); sprintf(bufr, "%s*i18nDlg.height: %d\n", bufr, height); - write (fd, bufr, strlen(bufr)); + if(-1 == write (fd, bufr, strlen(bufr))) { + perror(strerror(errno)); + } } } @@ -1401,7 +1404,7 @@ MoveUpCB( XtVaGetValues(i18n.preeditTypeList, XmNitems, &list_items, NULL); /* makes an array of two XmStrings by reversing the selected - one and the item preceeding it */ + one and the item preceding it */ items[0] = list_items[sel_index]; items[1] = list_items[sel_index - 1];