Ticket #14728 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

wxAuiNotebook - tabartgtk - gapbox not drawn, if active tab invisible

Reported by: jens Owned by:
Priority: normal Milestone: 2.9.5
Component: wxAui Version: 2.9-svn
Keywords: wxAuiNotebook, tabartgtk Cc:
Blocked By: Patch: yes
Blocking:

Description

If the active tab is not visible tabartgtk does not draw the gapbox.
The attached patch fixes this by drawing an gtk-box for inactive tabs.
For active tabs we draw a box without border, because some themes have transparent gaps and a line would be visible at the bottom of the tab (in the gap).
I also increased the height of the gapbox, because on some themes the bottom (or top, depending on alignment) part of the box is visible otherwise (should be hidden by the tab-content).

Attachments

wxAuiNotebook_gapbox.patch download (2.3 KB) - added by jens 8 months ago.
(gap-)box when active tab is invisible

Change History

Changed 8 months ago by jens

(gap-)box when active tab is invisible

Changed 8 months ago by VZ

  • status changed from new to closed
  • resolution set to fixed

(In [72627]) Fix drawing of wxAuiNotebook with GTK theme when active tab is invisible.

Draw a box using gtk_paint_box() for the tabs, without border for the active
one to avoid an extra line across the gap, and with the border for the others.

Closes #14728.

Note: See TracTickets for help on using tickets.