I am writing GIMP plugin in C and need to right align a number inside a GTK+ spin button.
I found out about gtk_button_set_alignment()
but nothing like gtk_spin_button_set_alignment()
seems to exist.
How can be this done?
I am writing GIMP plugin in C and need to right align a number inside a GTK+ spin button.
I found out about gtk_button_set_alignment()
but nothing like gtk_spin_button_set_alignment()
seems to exist.
How can be this done?
You can inspect the class hierarchy, and notice that GtkSpinButton
inherits from GtkEntry
.
The latter has the method gtk_entry_set_alignment()
, which is what I would recommend, that really should work.
There's also this question which is in C# but almost a dupe. Not sure what "false" means in that answer though, the xalign
property is a float
in the C API.