Rotate wxNotebook tabs label under wxGTK to match other ports
wxMSW and wxOSX/Cocoa show the labels vertically for the tabs positioned on the left- or right-hand side of wxNotebook, but wxGTK showed them horizontally. Bring it in sync with the other ports by rotating the labels to draw them vertically as the other ports do in wxGTK too. Closes https://github.com/wxWidgets/wxWidgets/pull/1032
This commit is contained in:
parent
dbd46881e6
commit
4726819484
@ -454,6 +454,12 @@ bool wxNotebook::InsertPage( size_t position,
|
||||
|
||||
/* set the label text */
|
||||
pageData->m_label = gtk_label_new(wxGTK_CONV(wxStripMenuCodes(text)));
|
||||
|
||||
if (m_windowStyle & wxBK_LEFT)
|
||||
gtk_label_set_angle(GTK_LABEL(pageData->m_label), 90);
|
||||
if (m_windowStyle & wxBK_RIGHT)
|
||||
gtk_label_set_angle(GTK_LABEL(pageData->m_label), 270);
|
||||
|
||||
gtk_box_pack_end(GTK_BOX(pageData->m_box),
|
||||
pageData->m_label, false, false, m_padding);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user