Using gtk_window_fullscreen_on_monitor() I am able to choose which display to launch the fullscreen application into. However, though I am using monitor 1 (5:4), it appears it is using the measurements or ratio of my other display (16:9), with the end result that it does not go fully full screen, as one can see in the below print screen:
, where a portion of the desktop is still visible underneath the application, and some buttons are cut off at the right end.
Any tips to fix this or is it a bug? It appears to be a problem with the labels, specifically their font-size specifier. They also shape the size of the toggle button instead of the other way around.
Update: the issue appears to be the font-size: xx-large property that applies to my buttons. I can remove that variable, but then the font is rather small.
A proper fullscreen once font-size is removed:
I would like to use gtk_label_set_wrap() to help the labels fit inside their buttons, but not sure how to extract a GTKLabel from a GTKToggleButton.
EDIT: I figured it out, just create a label and set is as the child of the GTKButton. My final issue is that the text does not center on multi-line labels.
Final EDIT: the centering can be done with gtk_set_justify().