GTK+3 round button

Hi,

how can I make the button perfectly round? This is my css:

gtk_css_provider_load_from_data(provider, “#font_button {min-width:5px;min-height:5px;border-radius: 50%;background: white;}”, -1, NULL);
gtk_widget_set_name(img_struct->sub_color , “font_button”);

the flags in gtk_box_pack_start() are both set to false and even by using the circular class the button is not perfectly round.

round_button

Try with gtk_widget_set_valign(button, GTK_ALIGN_CENTER).

1 Like

You are absolutely the B E S T ever! :pray: