# HG changeset patch # User Stefan Monnier # Date 1111086183 0 # Node ID 68d57432d36dbd1e8cd14d8d640b6cbca711b75b # Parent cffa9a82128665452babe5d4f026de981869fc3e (xm_update_label, xm_update_list): Use the recommended XmStringCreateLocalized function. Add missing copyright. diff -r cffa9a821286 -r 68d57432d36d lwlib/ChangeLog --- a/lwlib/ChangeLog Thu Mar 17 18:43:47 2005 +0000 +++ b/lwlib/ChangeLog Thu Mar 17 19:03:03 2005 +0000 @@ -1,5 +1,8 @@ 2005-03-17 Stefan Monnier + * lwlib-Xm.c (xm_update_label, xm_update_list): Use the recommended + XmStringCreateLocalized function. Add missing copyright. + * lwlib-Xm.h: Add missing copyright and license notice. 2005-03-12 Stefan Monnier diff -r cffa9a821286 -r 68d57432d36d lwlib/lwlib-Xm.c --- a/lwlib/lwlib-Xm.c Thu Mar 17 18:43:47 2005 +0000 +++ b/lwlib/lwlib-Xm.c Thu Mar 17 19:03:03 2005 +0000 @@ -1,11 +1,13 @@ /* The lwlib interface to Motif widgets. + Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005 + Free Software Foundation, Inc. Copyright (C) 1992 Lucid, Inc. This file is part of the Lucid Widget Library. The Lucid Widget Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 1, or (at your option) +the Free Software Foundation; either version 2, or (at your option) any later version. The Lucid Widget Library is distributed in the hope that it will be useful, @@ -368,7 +370,7 @@ else { built_string = - XmStringCreateLtoR (val->value, XmSTRING_DEFAULT_CHARSET); + XmStringCreateLocalized (val->value); XtSetArg (al [ac], XmNlabelString, built_string); ac++; } @@ -377,7 +379,7 @@ if (val->key) { - key_string = XmStringCreateLtoR (val->key, XmSTRING_DEFAULT_CHARSET); + key_string = XmStringCreateLocalized (val->key); XtSetArg (al [ac], XmNacceleratorText, key_string); ac++; } @@ -406,7 +408,7 @@ for (cur = val->contents, i = 0; cur; cur = cur->next) if (cur->value) { - XmString xmstr = XmStringCreate (cur->value, XmSTRING_DEFAULT_CHARSET); + XmString xmstr = XmStringCreateLocalized (cur->value); i += 1; XmListAddItem (widget, xmstr, 0); if (cur->selected)