GNOME Bugzilla – Bug 523281
Notebook doesn't give notion of which tab is drawing
Last modified: 2015-07-05 19:09:12 UTC
Please describe the problem: The notebook expose doesn't give notions about wether is drawing the first or the last tab button. This is a problem for the mac engine since the first and the last tab are drawn differently from the rest. It is possible to figure out if the first tab is being drawn by looking at the coordinates allocation.x + border + xthickness of the notebook, but the last one is pretty much impossible. The problem is that the tabs are drawn with just "tab" in the detail. The dirtiest hack to not break other engines would be "tab\0first", I'm not even considering this obviously. The other approach suggested by benzea would be adding a style property "tab-order-hint" set to FALSE by default, if set to TRUE, it would pass "tab_first", "tab_last", "tab_middle" (or maybe "tab_second", "tab_onetolast" for preemtiveness as well?). Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Whatever you do, please don't make an engine use GtkNotebook api, so that notebooks which are not GtkNotebook's could still look nice.
Guess you can derive that from the active page index and number of pages?
Not really, active page != tab being painted :/ this will need more stuff into the detail string or something like that, doesn't seem fixable to me.