--- rxvt-unicode/src/xdefaults.C 2004/02/13 12:16:21 1.11 +++ rxvt-unicode/src/xdefaults.C 2004/02/24 21:41:16 1.13 @@ -1,7 +1,7 @@ /*--------------------------------*-C-*---------------------------------* * File: xdefaults.c *----------------------------------------------------------------------* - * $Id: xdefaults.C,v 1.11 2004/02/13 12:16:21 pcg Exp $ + * $Id: xdefaults.C,v 1.13 2004/02/24 21:41:16 pcg Exp $ * * All portions of code are copyright by their respective author/s. * Copyright (c) 1994 Robert Nation @@ -199,11 +199,6 @@ STRG (Rs_imLocale, "imLocale", "imlocale", "string", "locale to use for input method"), #endif #endif /* USE_XIM */ -#ifdef GREEK_SUPPORT - STRG (Rs_greek_keyboard, "greek_keyboard", "grk", "mode", - "greek keyboard mapping; mode = iso | ibm"), - RSTRG (Rs_greektoggle_key, "greektoggle_key", "keysym"), -#endif STRG (Rs_name, NULL, "name", "string", "client instance, icon, and title strings"), STRG (Rs_title, "title", "title", "string", "title name for window"), @@ -325,12 +320,6 @@ # endif #endif "," -#if defined(GREEK_SUPPORT) - "Greek," -#endif -#if defined(RXVT_GRAPHICS) - "graphics," -#endif #if defined(NO_BACKSPACE_KEY) "no_backspace," #endif @@ -572,8 +561,13 @@ * value will be a string */ /* ARGSUSED */ -bool -rxvt_define_key(XrmDatabase *database __attribute__((unused)), XrmBindingList bindings __attribute__((unused)), XrmQuarkList quarks, XrmRepresentation *type __attribute__((unused)), XrmValue *value, XPointer closure __attribute__((unused))) +int +rxvt_define_key (XrmDatabase *database __attribute__((unused)), + XrmBindingList bindings __attribute__((unused)), + XrmQuarkList quarks, + XrmRepresentation *type __attribute__((unused)), + XrmValue *value, + XPointer closure __attribute__((unused))) { int last; @@ -901,14 +895,14 @@ class_prefix[2] = NULLQUARK; /* XXX: Need to check sizeof (rxvt_t) == sizeof (XPointer) */ XrmEnumerateDatabase (XrmGetDatabase (display), name_prefix, class_prefix, - XrmEnumOneLevel, rxvt_define_key, NULL); + XrmEnumOneLevel, rxvt_define_key, NULL); name_prefix[0] = XrmStringToName (APL_CLASS); name_prefix[1] = XrmStringToName ("keysym"); class_prefix[0] = XrmStringToName (APL_CLASS); class_prefix[1] = XrmStringToName ("Keysym"); /* XXX: Need to check sizeof (rxvt_t) == sizeof (XPointer) */ XrmEnumerateDatabase (XrmGetDatabase (display), name_prefix, class_prefix, - XrmEnumOneLevel, rxvt_define_key, NULL); + XrmEnumOneLevel, rxvt_define_key, NULL); # endif # endif @@ -998,40 +992,16 @@ * even without resources, at least do this setup for command-line * options and command-line long options */ -#ifdef MULTICHAR_SET - set_multichar_encoding (rs[Rs_multichar_encoding]); -#endif -#ifdef GREEK_SUPPORT - /* this could be a function in grkelot.c */ - /* void set_greek_keyboard (const char * str); */ - if (rs[Rs_greek_keyboard]) - { - if (!STRCMP (rs[Rs_greek_keyboard], "iso")) - greek_setmode (GREEK_ELOT928); /* former -grk9 */ - else if (!STRCMP (rs[Rs_greek_keyboard], "ibm")) - greek_setmode (GREEK_IBM437); /* former -grk4 */ - } - { - KeySym sym; - - if (rs[Rs_greektoggle_key] - && ((sym = XStringToKeysym (rs[Rs_greektoggle_key])) != 0)) - ks_greekmodeswith = sym; - } -#endif /* GREEK_SUPPORT */ #if defined (HOTKEY_CTRL) || defined (HOTKEY_META) + KeySym sym; - { - KeySym sym; - - if (rs[Rs_bigfont_key] - && ((sym = XStringToKeysym (rs[Rs_bigfont_key])) != 0)) - ks_bigfont = sym; - if (rs[Rs_smallfont_key] - && ((sym = XStringToKeysym (rs[Rs_smallfont_key])) != 0)) - ks_smallfont = sym; - } + if (rs[Rs_bigfont_key] + && ((sym = XStringToKeysym (rs[Rs_bigfont_key])) != 0)) + ks_bigfont = sym; + if (rs[Rs_smallfont_key] + && ((sym = XStringToKeysym (rs[Rs_smallfont_key])) != 0)) + ks_smallfont = sym; #endif }