How can I make GtkBtton round in shape?
相关问题
- Overriding virtual methods in PyGObject
- how to (programmatically) scroll to a specific lin
- How do I really make a GTK+ 3 GtkLayout transparen
- GtkD with D lang on Fedora
- Is it possible to modify how Text swt widget wrap
相关文章
- Converting PIL Image to GTK Pixbuf
- Can you get the parent GTK window from a widget?
- How to set multiple items into a GtkSelection for
- Stacking widgets in Gtk+
- How to access the theming Fonts and Colors on GTK/
- When are GTK signals emitted
- How can I link a set of toggle buttons like radio
- Example code for a minimal paint program (MS Paint
The accepted answer said:
Well, there is now!
https://developer.gnome.org/gtk3/stable/GtkButton.html
So, e.g.:
This works using both of the standard themes, Adwaita and HighContrast.
There is an issue though: This only work satisfactorily for buttons that have no
expand
properties set or are not otherwise manually upsized. I've not figured out whether this can be made to work withGtkButton
s havingexpand
ed size, as with the enlarged button that I wanted this for, I'm getting rounded corners but with flat regions at the sides. :/ My guess is the devs haven't thought, or cared... about supporting larger buttons having thecircular
style class. Maybe I'll ask on IRC sometime.update: That was patched, so the curvature now extends all the way around, instead of having flat segments. You'll still get ovals rather than circles if you get the dimensions non-square, but they'll be curved all the way.
There are a few options.