[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xrdb.c,v
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/xrdb.c,v |
Date: |
Fri, 01 Feb 2008 16:02:18 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Miles Bader <miles> 08/02/01 16:01:31
Index: src/xrdb.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xrdb.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -b -r1.61 -r1.62
--- src/xrdb.c 8 Jan 2008 20:44:27 -0000 1.61
+++ src/xrdb.c 1 Feb 2008 16:00:55 -0000 1.62
@@ -610,6 +610,29 @@
#endif /* not USE_MOTIF */
+#ifdef HAVE_X_I18N
+ {
+#ifdef USE_MOTIF
+ Bool motif = True;
+#else /* not USE_MOTIF */
+ Bool motif = False;
+#endif /* not USE_MOTIF */
+ /* Setup the default fontSet resource. */
+ extern char *xic_create_fontsetname P_ ((char *base_fontname, Bool motif));
+ char *fontsetname = xic_create_fontsetname (helv, motif);
+ int len = strlen (fontsetname);
+ char *buf = line;
+
+ /* fontsetname may be very long. */
+ if (len + 16 > 256)
+ buf = alloca (len + 16);
+ sprintf (buf, "Emacs*fontSet: %s", fontsetname);
+ XrmPutLineResource (&rdb, buf);
+ if (fontsetname != helv)
+ xfree (fontsetname);
+ }
+#endif /* HAVE_X_I18N */
+
user_database = get_user_db (display);
/* Figure out what the "customization string" is, so we can use it
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/src/xrdb.c,v,
Miles Bader <=