GNOME Bugzilla – Bug 666600
button: allocate the CSS border and deprecate GtkButton-inner-border
Last modified: 2011-12-20 18:09:43 UTC
See attached patchset; CSS borders should be allocated by GtkButton, and the content inside the button should be allocated inside the border box. GtkButton did the same with inner-border, which at this point can be deprecated and ignored.
Created attachment 203963 [details] [review] button: add a border param to gtk_button_get_props() We'll use it later to compute the child offsets.
Created attachment 203964 [details] [review] button: add CSS borders to the size request And allocate the button children according to it as well.
Created attachment 203965 [details] [review] button: deprecate the inner-border style property Since we allocate the standard CSS border to the button now, and center the child accordingly, there's no need for an additional inner-border style property. Deprecate it and ignore its values.
Attachment 203963 [details] pushed as fe59c5f - button: add a border param to gtk_button_get_props() Attachment 203964 [details] pushed as 0021ef1 - button: add CSS borders to the size request Attachment 203965 [details] pushed as 2827cd4 - button: deprecate the inner-border style property Pushed to master.