summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-06 15:20:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-06 20:54:18 +0200
commit5733166e7aeb7c1e08a3cd785d633e1e252e9c88 (patch)
treedc0825bd30fd7f319877bb90a67c07018155d88c /vcl/unx
parent5925b60ba8fc50899edf9474ee76439a4c27086c (diff)
gtk4: adapt small-button for replacement of GtkToolbar by GtkBox
Change-Id: I265665f13c2a5221bd1ce1a32747acd82120c6ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118514 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk3/gtkdata.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtkdata.cxx b/vcl/unx/gtk3/gtkdata.cxx
index d4f3622337d5..cb37d7764fd4 100644
--- a/vcl/unx/gtk3/gtkdata.cxx
+++ b/vcl/unx/gtk3/gtkdata.cxx
@@ -441,7 +441,8 @@ static GtkStyleProvider* CreateStyleProvider()
1.a) little close button in menubar to close back to start-center
1.b) and small buttons in view->data sources (button.small-button)
- 1.c) small toolbar button in infobars (toolbar.small-button button)
+ 1.c.1) gtk3 small toolbar button in infobars (toolbar.small-button button)
+ 1.c.2) gtk4 small toolbar button in infobars (box.small-button button)
1.d) comboboxes in the data browser for tdf#137695 (box#combobox button.small-button,
which would instead be combobox button.small-button if we didn't replace GtkComboBox,
see GtkInstanceComboBox for an explanation for why we do that)
@@ -453,7 +454,8 @@ static GtkStyleProvider* CreateStyleProvider()
*/
GtkCssProvider* pStyleProvider = gtk_css_provider_new();
static const gchar data[] =
- "button.small-button, toolbar.small-button button, combobox.small-button *.combo, box#combobox.small-button *.combo, entry.small-button { "
+ "button.small-button, toolbar.small-button button, box.small-button button, "
+ "combobox.small-button *.combo, box#combobox.small-button *.combo, entry.small-button { "
"padding: 0; margin-left: 0px; margin-right: 0px;"
"min-height: 18px; min-width: 18px; }"
"notebook.overflow > header.top > tabs > tab:checked { "