]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0078: GTK3: using wrong style for pre-edit area v9.1.0078
authorlilydjwg <lilydjwg@gmail.com>
Tue, 6 Feb 2024 09:49:14 +0000 (10:49 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 6 Feb 2024 09:49:14 +0000 (10:49 +0100)
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>
src/gui_xim.c
src/version.c

index c124e8b71ead2217fc3ead57dcaf6ca9746aea2a..345b3a493fd6dcd9d9930dae2dbc890b3d3438a7 100644 (file)
@@ -325,7 +325,7 @@ im_preedit_window_open(void)
 #if GTK_CHECK_VERSION(3,16,0)
     {
        GtkStyleContext * const context
-                                 = gtk_widget_get_style_context(gui.drawarea);
+                                 = gtk_widget_get_style_context(preedit_label);
        GtkCssProvider * const provider = gtk_css_provider_new();
        gchar              *css = NULL;
        const char * const fontname
@@ -349,7 +349,7 @@ im_preedit_window_open(void)
            fontsize_propval = g_strdup_printf("inherit");
 
        css = g_strdup_printf(
-               "widget#vim-gui-preedit-area {\n"
+               "#vim-gui-preedit-area {\n"
                "  font-family: %s,monospace;\n"
                "  font-size: %s;\n"
                "  color: #%.2lx%.2lx%.2lx;\n"
index 3e4102da9e2fd849602d44003658598fe5075b3b..99c74d0f8b7e93d4bb5e6f0705c2cbe995fb897d 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    78,
 /**/
     77,
 /**/