summaryrefslogtreecommitdiff
path: root/lwlib/xlwmenu.h
Commit message (Collapse)AuthorAgeFilesLines
* * lwlib/xlwmenu.h (xlwmenu_window_p, xlwmenu_redisplay): Add declarations.Dan Nicolaescu2010-07-251-0/+3
|
* Lucid menus can now use Xft for fonts.Jan Djärv2010-04-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New. (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that in current_font. (init_gconf): Read value of SYSTEM_FONT and save it in current_font. (Ffont_get_system_normal_font, xsettings_get_system_normal_font): New functions. (syms_of_xsettings): Initialize current_font. defsubr Sfont_get_system_normal_font. * xsettings.h (Ffont_get_system_normal_font, xsettings_get_system_normal_font): Declare. * xfns.c (extern xlwmenu_default_font): Remove. (Fx_create_frame): Remove setting of xlwmenu_default_font, moved to xlwmenu.c. * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode menu items in UTF-8. * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID. (apply_systemfont_to_menu): New function. (set_frame_menubar, create_and_show_popup_menu): Call apply_systemfont_to_menu. * xlwmenu.c (xlwmenu_default_font): Make static. (xlwMenuResources): Add XtNfaceName and XtNdefaultFace. (string_width): Use XftTextExtentsUtf8 if HAVE_XFT. (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Add versions for HAVE_XFT. (size_menu): Set max_rest_width in window_state structure. (display_menu_item): If HAVE_XFT and xft_draw is set, use XftDrawRect and XftDrawStringUtf8 to draw text. (make_windows_if_needed): Set max_rest_width and xft_draw in windows[i]. (openXftFont): New. (XlwMenuInitialize): Call openXftFont if HAVE_XFT. If mw->menu.font is not set, load font fixed and save it in xlwmenu_default_font. (XlwMenuInitialize): Set max_rest_width and xft_draw in windows[0]. (XlwMenuClassInitialize): Initialize xlwmenu_default_font. (XlwMenuRealize): Set xft_fg, xft_bg, xft_disabled_fg and windows[0].xft_draw if xft_font is set. (XlwMenuDestroy): Destroy all xft_draw and close xft_font. (facename_changed): New. (XlwMenuSetValues): Call facename_changed. If face name did change, close old fonts and destroy xft_draw:s. Then create new ones. * xlwmenu.h (XtNfaceName, XtCFaceName, XtNdefaultFace, XtCDefaultFace): New. * xlwmenuP.h (_window_state): Add max_rest_width and xft_draw. (_XlwMenu_part): Add faceName,xft_fg, xft_bg, xft_disabled_fg and xft_font. * xresources.texi (Lucid Resources): Mention faceName to set Xft fonts.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
|
* Lucid Widget Library was released under GPLv1 or later (license onlyGlenn Morris2007-02-281-1/+1
| | | | added 20050312).
* Add Lucid copyright.Glenn Morris2007-02-271-2/+3
| | | | Adjust FSF copyright years based on changelogs.
* Update copyright for years from Emacs 21 to present (mainly addingGlenn Morris2007-01-161-2/+2
| | | | 2001).
* (XtNleaveCallback, XtNenterCallback): New strings.Jan Djärv2007-01-011-0/+2
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-051-1/+2
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+1
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* Add missing copyright and license notice.Stefan Monnier2005-03-121-0/+20
|
* Changes for lucid popup menus (keyboard traversal enabled) and dialogsJan Djärv2004-01-121-3/+0
| | | | (Xaw and Xm pop down on ESC).
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (XtNdisabledForeground, XtCDisabledForeground): New resource names.Pavel Janík2002-05-061-0/+2
|
* Enable prototypes.Dave Love2000-06-061-1/+1
|
* (XtNhighlightCallback): New define.Gerd Moellmann2000-01-171-0/+1
|
* entered into RCSPaul Reilly1994-09-161-1/+7
|
* Initial revisionRichard M. Stallman1994-01-181-0/+50