]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/renderer.cpp
Actually use new GTK+ native assert dialog.
[wxWidgets.git] / src / gtk / renderer.cpp
index 77ce8a0a4f8e07bbae384cc9cbbe51e6a187d466..e968ace5e13694db5613b17374603f3c856a3776 100644 (file)
@@ -510,6 +510,10 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win,
     wxASSERT_MSG( gdk_window,
                   wxT("cannot use wxRendererNative on wxDC of this type") );
 
+    int x_diff = 0;
+    if (win->GetLayoutDirection() == wxLayout_RightToLeft)
+        x_diff = rect.width;
+
     GtkStateType state;
     if (flags & wxCONTROL_SELECTED)
     {
@@ -524,7 +528,7 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win,
                         NULL,
                         win->m_wxwindow,
                         "cell_even",
-                        dc.LogicalToDeviceX(rect.x),
+                        dc.LogicalToDeviceX(rect.x) - x_diff,
                         dc.LogicalToDeviceY(rect.y),
                         rect.width,
                         rect.height );