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 351679 - Notebooks drawn with extra line below tab in MS-Windows theme
Notebooks drawn with extra line below tab in MS-Windows theme
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.8.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-08-16 21:10 UTC by Brad Taylor
Modified: 2007-06-10 18:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
System.Windows.Forms standard tab control (262.85 KB, image/bmp)
2006-08-16 21:10 UTC, Brad Taylor
  Details
Gtk Notebook using MS-Windows theme (150.06 KB, image/bmp)
2006-08-16 21:11 UTC, Brad Taylor
  Details
Proposed patch (3.31 KB, patch)
2006-12-05 06:35 UTC, Cody Russell
needs-work Details | Review
note the differences (40.23 KB, image/png)
2006-12-05 14:58 UTC, Dominic Lachowicz
  Details
A newer, hopefully better patch. :) (4.51 KB, patch)
2006-12-08 23:22 UTC, Cody Russell
needs-work Details | Review
gaim's preferences dialog, with the highlight drawn improperly (16.64 KB, image/png)
2006-12-11 14:55 UTC, Dominic Lachowicz
  Details
gaim's preferences dialog. the highlighted tab is shifted right (21.24 KB, image/png)
2006-12-11 14:56 UTC, Dominic Lachowicz
  Details
Test Screenshot (10.97 KB, image/png)
2006-12-11 15:43 UTC, Cody Russell
  Details
Newer patch, issues at the top and right edge (4.81 KB, patch)
2006-12-11 15:59 UTC, Cody Russell
none Details | Review
Newer patch that correctly checks which tab we are rendering (6.01 KB, patch)
2006-12-11 20:57 UTC, Cody Russell
committed Details | Review

Description Brad Taylor 2006-08-16 21:10:16 UTC
Currently, notebook tabs have an extra line drawn underneath them when compared to  XP native tabs.  See the two attachments to get what I'm talking about.
Comment 1 Brad Taylor 2006-08-16 21:10:46 UTC
Created attachment 71050 [details]
System.Windows.Forms standard tab control
Comment 2 Brad Taylor 2006-08-16 21:11:31 UTC
Created attachment 71051 [details]
Gtk Notebook using MS-Windows theme
Comment 3 Cody Russell 2006-12-04 04:11:42 UTC
Do you happen to know off the top of your head if this bug also applies if Windows is using "Classic" theme?
Comment 4 Dominic Lachowicz 2006-12-04 04:14:42 UTC
The classic theme bit is drawn properly - that is, it is drawn without a line below the active tab.
Comment 5 Cody Russell 2006-12-05 06:35:46 UTC
Created attachment 77708 [details] [review]
Proposed patch

I believe this will solve it.
Comment 6 Dominic Lachowicz 2006-12-05 14:57:57 UTC
This patch still needs some work. There is no horizontal line drawn across the tabs, up to the current tab. I'll attach a screenshot of Gaim's preferences dialog vs. WinXP's disk drive dialog.
Comment 7 Dominic Lachowicz 2006-12-05 14:58:31 UTC
Created attachment 77732 [details]
note the differences
Comment 8 Cody Russell 2006-12-05 16:40:48 UTC
Ah, cool.. thanks very much!  I'll fix this.
Comment 9 Cody Russell 2006-12-08 23:22:14 UTC
Created attachment 77997 [details] [review]
A newer, hopefully better patch. :)

Hi dom, could you take a look at this when you have a chance?
Comment 10 Dominic Lachowicz 2006-12-11 14:54:33 UTC
Still needs some work. Will attach 2 screenshots to show what I mean.
Comment 11 Dominic Lachowicz 2006-12-11 14:55:42 UTC
Created attachment 78133 [details]
gaim's preferences dialog, with the highlight drawn improperly
Comment 12 Dominic Lachowicz 2006-12-11 14:56:20 UTC
Created attachment 78134 [details]
gaim's preferences dialog. the highlighted tab is shifted right
Comment 13 Cody Russell 2006-12-11 15:40:53 UTC
Sorry about that first one.  I noticed it last night and fixed it then.  I get the second one happening without my patch, but I've got a fix for it ready and I'll post in a minute.
Comment 14 Cody Russell 2006-12-11 15:43:16 UTC
Created attachment 78135 [details]
Test Screenshot

I also hacked it to display the space in between notebook tabs so that it looks more like Windows.  I'm not really sure how this should work for left/right oriented tabs though.  Would you like to include this feature?
Comment 15 Cody Russell 2006-12-11 15:45:27 UTC
... or should I open a different bugzilla entry for that feature and apply it separately?
Comment 16 Dominic Lachowicz 2006-12-11 15:47:41 UTC
Yeah, that's fine. Your screenshot looks much better.
Comment 17 Cody Russell 2006-12-11 15:59:05 UTC
Created attachment 78137 [details] [review]
Newer patch, issues at the top and right edge

Hi dom, this patch will fix the top edge (where the yellow stripe was drawing incorrectly).. sorry about that one.  It also "fixes" the right edge where the tab's edge and the shadow didn't appear to line up correctly, just by moving the tab a little to the left.  I could try to look into how to draw the right tab's edge shadowed if you want, but I'd rather open a new bugzilla entry for that if possible.
Comment 18 Cody Russell 2006-12-11 16:00:45 UTC
I didn't include the tab spacing fix in this patch, btw.  Should I do that, or open a new bugzilla entry for it?
Comment 19 Cody Russell 2006-12-11 16:05:11 UTC
Actually, please don't apply that patch.  I see something wrong with that right edge fix that doesn't really fix it the way it should.
Comment 20 Cody Russell 2006-12-11 20:57:35 UTC
Created attachment 78161 [details] [review]
Newer patch that correctly checks which tab we are rendering

The last patch was not correct in how it tried to figure out which tab we are rendering.  This patch knows if we are drawing the last tab, and it's able to adjust the width of the last tab accordingly so that the edges line up.
Comment 21 Dominic Lachowicz 2006-12-14 02:09:45 UTC
Committed to the GTK+ 2.10 and HEAD branches. Thanks, Cody.