comparison lwlib/xlwmenu.c @ 343:8bec6624d99b r21-1-1

Import from CVS: tag r21-1-1
author cvs
date Mon, 13 Aug 2007 10:52:53 +0200
parents 54f7aa390f4f
children 7c94d56991e1
comparison
equal deleted inserted replaced
342:b036ce23deaa 343:8bec6624d99b
421 int charslength; 421 int charslength;
422 char *chars; 422 char *chars;
423 int i, j; 423 int i, j;
424 424
425 #ifdef NEED_MOTIF 425 #ifdef NEED_MOTIF
426 chars = "";
426 if (!XmStringGetLtoR (string, XmFONTLIST_DEFAULT_TAG, &chars)) 427 if (!XmStringGetLtoR (string, XmFONTLIST_DEFAULT_TAG, &chars))
427 { 428 chars = "";
428 chars = "";
429 }
430 #else 429 #else
431 chars = string; 430 chars = string;
432 #endif 431 #endif
433 charslength = strlen (chars); 432 charslength = strlen (chars);
434 newchars = (char *) alloca (charslength + 1); 433 newchars = (char *) alloca (charslength + 1);
870 { 869 {
871 int i,s=0; 870 int i,s=0;
872 char *chars; 871 char *chars;
873 872
874 #ifdef NEED_MOTIF 873 #ifdef NEED_MOTIF
875 XmStringGetLtoR (string, XmFONTLIST_DEFAULT_TAG, &chars); 874 chars = "";
875 if (!XmStringGetLtoR (string, XmFONTLIST_DEFAULT_TAG, &chars))
876 chars = "";
876 #else 877 #else
877 chars = string; 878 chars = string;
878 #endif 879 #endif
879 for (i=0;chars[i];++i) { 880 for (i=0;chars[i];++i) {
880 if (chars[i]=='%'&&chars[i+1]=='_') { 881 if (chars[i]=='%'&&chars[i+1]=='_') {