[gtk: 2/3] colorbutton: Remove .activatable style class from the color swatch




commit b69477172830defb6a08e560b6914325484c10cc
Author: nana-4 <hnmaigo gmail com>
Date:   Sat Aug 8 08:37:33 2020 +0900

    colorbutton: Remove .activatable style class from the color swatch
    
    The button itself is activatable, but its color swatch is not.

 gtk/gtkcolorbutton.c | 1 +
 1 file changed, 1 insertion(+)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]