0
0
mirror of https://github.com/vim/vim.git synced 2025-11-14 23:04:02 -05:00

patch 9.1.1903: GTK naming still reflects GTK1 support

Problem:  GTK naming still reflects GTK1 support
Solution: Rename to avoid confusion (Drew Vogel)

related: #18708

Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Drew Vogel
2025-11-10 20:01:04 +00:00
committed by Christian Brabandt
parent 20ccdc7e50
commit d32a26550b
2 changed files with 7 additions and 5 deletions

View File

@@ -5185,7 +5185,7 @@ static PangoEngineShape *default_shape_engine = NULL;
/* /*
* Create a map from ASCII characters in the range [32,126] to glyphs * Create a map from ASCII characters in the range [32,126] to glyphs
* of the current font. This is used by gui_gtk2_draw_string() to skip * of the current font. This is used by gui_gtk_draw_string() to skip
* the itemize and shaping process for the most common case. * the itemize and shaping process for the most common case.
*/ */
static void static void
@@ -5900,7 +5900,7 @@ draw_under(int flags, int row, int col, int cells)
} }
int int
gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags) gui_gtk_draw_string(int row, int col, char_u *s, int len, int flags)
{ {
char_u *conv_buf = NULL; // result of UTF-8 conversion char_u *conv_buf = NULL; // result of UTF-8 conversion
char_u *new_conv_buf; char_u *new_conv_buf;
@@ -6062,8 +6062,8 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
backup_ch = *(cs + slen); backup_ch = *(cs + slen);
*(cs + slen) = NUL; *(cs + slen) = NUL;
} }
len_sum += gui_gtk2_draw_string_ext(row, col + len_sum, len_sum += gui_gtk_draw_string_ext(row, col + len_sum, cs, slen, flags,
cs, slen, flags, needs_pango); needs_pango);
if (slen < len) if (slen < len)
*(cs + slen) = backup_ch; *(cs + slen) = backup_ch;
cs += slen; cs += slen;
@@ -6075,7 +6075,7 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
} }
int int
gui_gtk2_draw_string_ext( gui_gtk_draw_string_ext(
int row, int row,
int col, int col,
char_u *s, char_u *s,

View File

@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1903,
/**/ /**/
1902, 1902,
/**/ /**/