More RTL fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-09-14 19:24:41 +00:00
parent 0c246b3ca3
commit 5eefe02976
2 changed files with 29 additions and 8 deletions

View File

@@ -190,6 +190,10 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
GtkWidget *button = GetButtonWidget();
int x_diff = 0;
if (win->GetLayoutDirection() == wxLayout_RightToLeft)
x_diff = rect.width;
gtk_paint_box
(
button->style,
@@ -201,7 +205,7 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
NULL,
button,
"button",
dc.LogicalToDeviceX(rect.x), rect.y, rect.width, rect.height
dc.LogicalToDeviceX(rect.x) - x_diff, rect.y, rect.width, rect.height
);
DrawHeaderButtonContents(win, dc, rect, flags, params);