ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/xdefaults.C
(Generate patch)

Comparing rxvt-unicode/src/xdefaults.C (file contents):
Revision 1.3 by pcg, Tue Nov 25 11:52:42 2003 UTC vs.
Revision 1.5 by pcg, Thu Dec 18 00:29:29 2003 UTC

1/*--------------------------------*-C-*---------------------------------* 1/*--------------------------------*-C-*---------------------------------*
2 * File: xdefaults.c 2 * File: xdefaults.c
3 *----------------------------------------------------------------------* 3 *----------------------------------------------------------------------*
4 * $Id: xdefaults.C,v 1.3 2003/11/25 11:52:42 pcg Exp $ 4 * $Id: xdefaults.C,v 1.5 2003/12/18 00:29:29 pcg Exp $
5 * 5 *
6 * All portions of code are copyright by their respective author/s. 6 * All portions of code are copyright by their respective author/s.
7 * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> 7 * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com>
8 * - original version 8 * - original version
9 * Copyright (c) 1997,1998 mj olesen <olesen@me.queensu.ca> 9 * Copyright (c) 1997,1998 mj olesen <olesen@me.queensu.ca>
198#endif /* MULTICHAR_SET */ 198#endif /* MULTICHAR_SET */
199#ifdef USE_XIM 199#ifdef USE_XIM
200 STRG(Rs_inputMethod, "inputMethod", "im", "name", "name of input method"), 200 STRG(Rs_inputMethod, "inputMethod", "im", "name", "name of input method"),
201 STRG(Rs_preeditType, "preeditType", "pt", "style", 201 STRG(Rs_preeditType, "preeditType", "pt", "style",
202 "input style: style = OverTheSpot|OffTheSpot|Root"), 202 "input style: style = OverTheSpot|OffTheSpot|Root"),
203#if defined(HAVE_XSETLOCALE) || defined(HAVE_SETLOCALE)
204 STRG(Rs_imLocale, "imLocale", "imlocale", "string", "locale to use for input method"),
205#endif
203#endif /* USE_XIM */ 206#endif /* USE_XIM */
204#ifdef GREEK_SUPPORT 207#ifdef GREEK_SUPPORT
205 STRG(Rs_greek_keyboard, "greek_keyboard", "grk", "mode", 208 STRG(Rs_greek_keyboard, "greek_keyboard", "grk", "mode",
206 "greek keyboard mapping; mode = iso | ibm"), 209 "greek keyboard mapping; mode = iso | ibm"),
207 RSTRG(Rs_greektoggle_key, "greektoggle_key", "keysym"), 210 RSTRG(Rs_greektoggle_key, "greektoggle_key", "keysym"),
681 for (entry = 0; entry < optList_size(); entry++) { 684 for (entry = 0; entry < optList_size(); entry++) {
682 const char *kw = optList[entry].kw; 685 const char *kw = optList[entry].kw;
683 686
684 if (kw == NULL) 687 if (kw == NULL)
685 continue; 688 continue;
686 n = STRLEN(kw); 689 n = STRLEN (kw);
687 if (str[n] == ':' && rxvt_Str_match(str, kw)) { 690 if (str[n] == ':' && rxvt_Str_match(str, kw)) {
688 /* skip `keyword:' */ 691 /* skip `keyword:' */
689 str += (n + 1); 692 str += (n + 1);
690 rxvt_Str_trim(str); 693 rxvt_Str_trim(str);
691 n = STRLEN(str); 694 n = STRLEN(str);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines