0

I have created GTK Grid using gtk_grid_new and set both column and row spacing to 0 (gtk_grid_set_column_spacing and gtk_grid_set_row_spacing), however for some reason I still get 1px spacing between rows.

I have even tried overriding css with * { margin: 0; padding: 0; } on whole window using gtk_css_provider_load_from_data, however it didn't help.

On image you can see gap above purple rectangle (I have transparent background on window so it is easier to see)

enter image description here

asked Oct 2, 2025 at 16:04
1
  • You need to show more code, so I can realize ur problem now. Commented Oct 25, 2025 at 16:12

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.