summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornana-4 <hnmaigo@gmail.com>2020-08-08 08:37:33 +0900
committernana-4 <hnmaigo@gmail.com>2020-08-08 08:37:33 +0900
commitb69477172830defb6a08e560b6914325484c10cc (patch)
tree8275c4dc513c31907f1187a42aa9f6951492b3ac
parent51d6ec5131992a5e7cf763d117174f83be38a5cc (diff)
downloadgtk+-b69477172830defb6a08e560b6914325484c10cc.tar.gz
colorbutton: Remove .activatable style class from the color swatch
The button itself is activatable, but its color swatch is not.
-rw-r--r--gtk/gtkcolorbutton.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c
index f117d8bef7..511f26bd59 100644
--- a/gtk/gtkcolorbutton.c
+++ b/gtk/gtkcolorbutton.c
@@ -272,6 +272,7 @@ gtk_color_button_init (GtkColorButton *button)
button->swatch = gtk_color_swatch_new ();
gtk_widget_set_can_focus (button->swatch, FALSE);
+ gtk_widget_remove_css_class (button->swatch, "activatable");
g_object_set (button->swatch, "has-menu", FALSE, NULL);
layout = gtk_widget_create_pango_layout (GTK_WIDGET (button), "Black");
pango_layout_get_pixel_extents (layout, NULL, &rect);