diff --git a/src/vtegtk.cc b/src/vtegtk.cc index 8edb9d9..8f2dd2d 100644 --- a/src/vtegtk.cc +++ b/src/vtegtk.cc @@ -74,6 +74,7 @@ struct _VteTerminalClassPrivate { GtkStyleProvider *style_provider; + GtkStyleProvider *style_provider_padding; }; #ifdef VTE_DEBUG @@ -399,6 +400,9 @@ vte_terminal_init(VteTerminal *terminal) context = gtk_widget_get_style_context(&terminal->widget); gtk_style_context_add_provider (context, VTE_TERMINAL_GET_CLASS (terminal)->priv->style_provider, + GTK_STYLE_PROVIDER_PRIORITY_FALLBACK); + gtk_style_context_add_provider (context, + VTE_TERMINAL_GET_CLASS (terminal)->priv->style_provider_padding, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); /* Initialize private data. NOTE: place is zeroed */ @@ -1813,6 +1817,7 @@ vte_terminal_class_init(VteTerminalClass *klass) klass->priv = G_TYPE_CLASS_GET_PRIVATE (klass, VTE_TYPE_TERMINAL, VteTerminalClassPrivate); klass->priv->style_provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ()); + klass->priv->style_provider_padding = GTK_STYLE_PROVIDER (gtk_css_provider_new ()); gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (klass->priv->style_provider), "VteTerminal, " VTE_TERMINAL_CSS_NAME " {\n" "padding: 1px 1px 1px 1px;\n" @@ -1821,6 +1826,11 @@ vte_terminal_class_init(VteTerminalClass *klass) "}\n", -1, NULL); + gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (klass->priv->style_provider_padding), + "VteTerminal, " VTE_TERMINAL_CSS_NAME " {\n" + "padding: 1px 1px 1px 1px;\n" + "}\n", + -1, NULL); #ifdef WITH_A11Y /* a11y */ gtk_widget_class_set_accessible_type(widget_class, VTE_TYPE_TERMINAL_ACCESSIBLE);