From 567e4dec2cb9b5eda4d7575f8f24c1da5bf646ea Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 31 Dec 2004 21:01:02 +0000 Subject: updated for version 7.0027 --- src/gui_x11.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/gui_x11.c') diff --git a/src/gui_x11.c b/src/gui_x11.c index 03300e453..90e793c33 100644 --- a/src/gui_x11.c +++ b/src/gui_x11.c @@ -1834,7 +1834,16 @@ gui_mch_init_font(font_name, do_fontset) #ifdef FEAT_XFONTSET XFontSet fontset = NULL; +#endif +#ifdef FEAT_GUI_MOTIF + /* A font name equal "*" is indicating, that we should activate the font + * selection dialogue to get a new font name. So let us do it here. */ + if (font_name != NULL && STRCMP(font_name, "*") == 0) + font_name = gui_xm_select_font(hl_get_font_name()); +#endif + +#ifdef FEAT_XFONTSET if (do_fontset) { /* If 'guifontset' is set, VIM treats all font specifications as if @@ -1936,6 +1945,10 @@ gui_mch_init_font(font_name, do_fontset) } } +#ifdef FEAT_GUI_MOTIF + gui_motif_synch_fonts(); +#endif + return OK; } @@ -1988,6 +2001,7 @@ gui_mch_get_font(name, giveErrorIfMissing) return (GuiFont)font; } +#if defined(FEAT_EVAL) || defined(PROTO) /* * Return the name of font "font" in allocated memory. * Don't know how to get the actual name, thus use the provided name. @@ -2002,6 +2016,7 @@ gui_mch_get_fontname(font, name) return NULL; return vim_strsave(name); } +#endif int gui_mch_adjust_charsize() -- cgit v1.2.1