# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1613459829 0 # Node ID 5951752fa7af4667eef3c9d2df0822d5e1b1e2f8 # Parent a2020f907a6cf6054bd07823da29c383b9d27397 GTK4: Implement borderless button style for buttons. diff -r a2020f907a6c -r 5951752fa7af gtk4/dw.c --- a/gtk4/dw.c Tue Feb 16 06:39:37 2021 +0000 +++ b/gtk4/dw.c Tue Feb 16 07:17:09 2021 +0000 @@ -8551,11 +8551,12 @@ { if(mask & DW_BS_NOBORDER) { - /* TODO: Figure out how to do this in GTK4 with no Shadow or Relief */ + GtkStyleContext *context = gtk_widget_get_style_context(GTK_WIDGET(handle)); + if(style & DW_BS_NOBORDER) - ; + gtk_style_context_add_class(context, "flat"); else - ; + gtk_style_context_remove_class(context, "flat"); } } if(GTK_IS_LABEL(handle2))