GNOME Bugzilla – Bug 705687
GtkGrid not properly styled when using the LINKED class
Last modified: 2013-08-22 14:08:23 UTC
The GTK documentation encourages developers to use GtkGrid for all boxing needs, replacing GtkVBox, GtkHBox, GtkBox, GtkTable, etc. However, currently it's not possible to use GtkGrid to build linked buttons, because its LINKED class is not properly styled. Attached is an example code for Python 3, and a screenshot of what it generates. This also happens with HighContrast.
Created attachment 251197 [details] screenshot
Created attachment 251199 [details] code that generated the screenshot above
There isn't much that can be done here, :first-child and :last-child are not well defined concepts for a bidimensional grid
Ok, so it seems the issue is deeper. I filed https://bugzilla.gnome.org/show_bug.cgi?id=706269
Not much we can do here from the theme. If/when the grid starts supporting sibling selectors, this will work automatically - or we'll ensure it works correctly at that time. Closing as NOTABUG for now.