GtkFrame: Automatically add a CSS class to identify the label widget
@dboles
Submitted by Daniel Boles Link to original bug (#778771)
Description
At present, if e.g. I want to put a margin around the added child of a Frame, without affecting the "label widget", it seems I must manually add a .label class to the label widget and select against that, e.g.
frame > :not(border):not(.label) { /* blah */ }
However, this will not work for the standard GtkLabel child created by the convenience function gtk_frame_set_label(char const*), and anyway, having to add the class to any custom widgets is pretty tedious.
So I think it might be nice if whenever a widget was added using gtk_frame_set_label_widget(), it automatically got a style node named "framelabel" or something, enabling users to natively select on/against the label widget, avoiding the problems/work outlined above.
Is this considered a good use of CSS nodes? If so, I can look into it.