0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.1.0078: GTK3: using wrong style for pre-edit area

Problem:  GTK3: using wrong style for pre-edit area
Solution: remove the widget name, adjust css
          (lilydjwg)

closes: #13972

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
lilydjwg
2024-02-06 10:49:14 +01:00
committed by Christian Brabandt
parent 7f630e6f35
commit b1457d4cb9
2 changed files with 4 additions and 2 deletions

View File

@@ -325,7 +325,7 @@ im_preedit_window_open(void)
#if GTK_CHECK_VERSION(3,16,0) #if GTK_CHECK_VERSION(3,16,0)
{ {
GtkStyleContext * const context GtkStyleContext * const context
= gtk_widget_get_style_context(gui.drawarea); = gtk_widget_get_style_context(preedit_label);
GtkCssProvider * const provider = gtk_css_provider_new(); GtkCssProvider * const provider = gtk_css_provider_new();
gchar *css = NULL; gchar *css = NULL;
const char * const fontname const char * const fontname
@@ -349,7 +349,7 @@ im_preedit_window_open(void)
fontsize_propval = g_strdup_printf("inherit"); fontsize_propval = g_strdup_printf("inherit");
css = g_strdup_printf( css = g_strdup_printf(
"widget#vim-gui-preedit-area {\n" "#vim-gui-preedit-area {\n"
" font-family: %s,monospace;\n" " font-family: %s,monospace;\n"
" font-size: %s;\n" " font-size: %s;\n"
" color: #%.2lx%.2lx%.2lx;\n" " color: #%.2lx%.2lx%.2lx;\n"

View File

@@ -704,6 +704,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 */
/**/
78,
/**/ /**/
77, 77,
/**/ /**/