diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-12-19 22:46:22 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-12-19 22:46:22 +0000 |
commit | 1cd871b5341bf43ee99e136844e3131014880f92 (patch) | |
tree | 6bd9573dbc14de3c4ec85e424cbec9c8d1ee0ed8 /src/gui_gtk_x11.c | |
parent | 46c9c73de8def79baf8f0a34a12549f6c14944f3 (diff) | |
download | vim-git-1cd871b5341bf43ee99e136844e3131014880f92.tar.gz |
updated for version 7.0023v7.0023
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r-- | src/gui_gtk_x11.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 34bbed533..ffd702c40 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -4792,6 +4792,7 @@ gui_mch_get_font(char_u *name, int report_error) return font; } +#if defined(FEAT_EVAL) || defined(PROTO) /* * Return the name of font "font" in allocated memory. */ @@ -4799,7 +4800,7 @@ gui_mch_get_font(char_u *name, int report_error) char_u * gui_mch_get_fontname(GuiFont font, char_u *name) { -#ifdef HAVE_GTK2 +# ifdef HAVE_GTK2 if (font != NOFONT) { char *name = pango_font_description_to_string(font); @@ -4812,13 +4813,14 @@ gui_mch_get_fontname(GuiFont font, char_u *name) return s; } } -#else +# else /* Don't know how to get the name, return what we got. */ if (name != NULL) return vim_strsave(name); -#endif +# endif return NULL; } +#endif #if !defined(HAVE_GTK2) || defined(PROTO) /* |