summaryrefslogtreecommitdiff
path: root/src/gui_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-31 21:01:02 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-31 21:01:02 +0000
commit567e4dec2cb9b5eda4d7575f8f24c1da5bf646ea (patch)
tree39da36982c40a5ad85859e3994fa5f5f164eaa5e /src/gui_x11.c
parentdef9e829de8bcaf723568e5780c47557e83f99f0 (diff)
downloadvim-git-567e4dec2cb9b5eda4d7575f8f24c1da5bf646ea.tar.gz
updated for version 7.0027v7.0027
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r--src/gui_x11.c15
1 files changed, 15 insertions, 0 deletions
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()