After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 523281 - Notebook doesn't give notion of which tab is drawing
Notebook doesn't give notion of which tab is drawing
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkNotebook
2.13.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-03-19 00:18 UTC by Alberto Ruiz
Modified: 2015-07-05 19:09 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Alberto Ruiz 2008-03-19 00:18:32 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:
Comment 1 Yevgen Muntyan 2008-03-19 21:03:26 UTC
Whatever you do, please don't make an engine use GtkNotebook api, so that notebooks which are not GtkNotebook's could still look nice.
Comment 2 Rob Staudinger 2009-07-29 07:45:03 UTC
Guess you can derive that from the active page index and number of pages?
Comment 3 Alberto Ruiz 2009-07-29 09:30:48 UTC
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.