1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00
emacs/lwlib
Jan Djärv 3928f2b67e Use *font for Xft font names for Lucid menus and dialogs.
* doc/emacs/xresources.texi (X Resources): Remove *faceName and replace it with
*font for Lucid.

* lwlib/lwlib-Xaw.c (make_dialog): Use *font even for Xft fonts.  Try
XLoadQueryFont first and then Xft fonts.

* lwlib/xlwmenu.c (xlwmenu_default_font): Remove, does not work for
multi-display.
(xlwMenuResources): Remove XtNfaceName and XtNdefaultFace.
Make XtNFont a String resource.
(make_windows_if_needed): Call XFlush so later changes are seen by the
X server.
(remap_menubar): Use XtMoveWidget and then
XtResizeWidget/XtResizeWindow after XtPopup.  Works better with
Compiz.
(make_drawing_gcs): Check if mw->menu.font is set.
(getDefaultXftFont): New function.
(openXftFont): faceName is now fontName.  Try XLoadQueryFont first
and then XftFontOpenName.
(XlwMenuInitialize): Initialize mw->menu.font with XLoadQueryFont.
(XlwMenuClassInitialize): Remove initialization of
xlwmenu_default_font.
(fontname_changed): Renamed from facename_changed.
(XlwMenuSetValues): Use facename_changed.

* lwlib/xlwmenu.h: Remove Xt[CN]faceName and Xt[NC]defaultFace.

* lwlib/xlwmenuP.h (_XlwMenu_part): Remove faceName.  Add fontName.

* src/xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
(apply_systemfont_to_menu): Set resources *menubar*font and
*popup*font.  Remove defflt.
(set_frame_menubar, create_and_show_popup_menu): Call
apply_systemfont_to_menu before lw_create_widget.

* src/xrdb.c (x_load_resources): For LUCID and XFT, don't put a
resource that specifies helvetica for menus and dialogs.
2011-02-14 18:21:10 +01:00
..
.gitignore *** empty log message *** 2000-09-21 15:08:55 +00:00
ChangeLog Use *font for Xft font names for Lucid menus and dialogs. 2011-02-14 18:21:10 +01:00
COPYING Change to GPLv3. 2007-07-25 07:00:38 +00:00
lwlib-int.h Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
lwlib-utils.c lwlib trivia. 2011-02-12 18:07:25 -08:00
lwlib-utils.h Nuke arch-tags. 2011-01-15 15:16:57 -08:00
lwlib-Xaw.c Use *font for Xft font names for Lucid menus and dialogs. 2011-02-14 18:21:10 +01:00
lwlib-Xaw.h Nuke arch-tags. 2011-01-15 15:16:57 -08:00
lwlib-Xlw.c lwlib/ trivia. 2011-02-09 21:03:29 -08:00
lwlib-Xlw.h Nuke arch-tags. 2011-01-15 15:16:57 -08:00
lwlib-Xm.c lwlib/ trivia. 2011-02-09 21:03:29 -08:00
lwlib-Xm.h Nuke arch-tags. 2011-01-15 15:16:57 -08:00
lwlib.c lwlib/ trivia. 2011-02-09 21:03:29 -08:00
lwlib.h Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Makefile.in lwlib/Makefile.in misc cleanup. 2011-02-10 19:41:17 -08:00
README Remove silly examples of changes. 2010-02-03 21:21:40 -08:00
xlwmenu.c Use *font for Xft font names for Lucid menus and dialogs. 2011-02-14 18:21:10 +01:00
xlwmenu.h Use *font for Xft font names for Lucid menus and dialogs. 2011-02-14 18:21:10 +01:00
xlwmenuP.h Use *font for Xft font names for Lucid menus and dialogs. 2011-02-14 18:21:10 +01:00

This subdirectory contains the Lucid Widget Library (lwlib), which
provides a uniform interface to a few different X toolkits.  The
library was written by Lucid, Inc and released under the terms of the
GPL version 1 (or later).  It is not considered part of GNU Emacs.

This version of the library differs from the original as described in
the ChangeLog file.