Index: gtk/gtkscrolledwindow.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkscrolledwindow.c,v
retrieving revision 1.67
diff -u -b -B -p -r1.67 gtkscrolledwindow.c
--- gtk/gtkscrolledwindow.c	28 Feb 2003 23:48:40 -0000	1.67
+++ gtk/gtkscrolledwindow.c	25 May 2003 22:28:59 -0000
@@ -1032,8 +1032,12 @@ gtk_scrolled_window_relative_allocation 
       gtk_widget_get_child_requisition (scrolled_window->vscrollbar,
 					&vscrollbar_requisition);
   
-      if (scrolled_window->window_placement == GTK_CORNER_TOP_RIGHT ||
-	  scrolled_window->window_placement == GTK_CORNER_BOTTOM_RIGHT)
+      if ((gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR && 
+	   (scrolled_window->window_placement == GTK_CORNER_TOP_RIGHT ||
+	    scrolled_window->window_placement == GTK_CORNER_BOTTOM_RIGHT)) ||
+	  (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL && 
+	   (scrolled_window->window_placement == GTK_CORNER_TOP_LEFT ||
+	    scrolled_window->window_placement == GTK_CORNER_BOTTOM_LEFT)))
 	allocation->x += (vscrollbar_requisition.width +  scrollbar_spacing);
 
       allocation->width = MAX (1, allocation->width - (vscrollbar_requisition.width + scrollbar_spacing));
@@ -1170,8 +1174,12 @@ gtk_scrolled_window_size_allocate (GtkWi
       gtk_widget_get_child_requisition (scrolled_window->vscrollbar,
 					&vscrollbar_requisition);
 
-      if (scrolled_window->window_placement == GTK_CORNER_TOP_LEFT ||
-	  scrolled_window->window_placement == GTK_CORNER_BOTTOM_LEFT)
+      if ((gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL && 
+	   (scrolled_window->window_placement == GTK_CORNER_TOP_RIGHT ||
+	    scrolled_window->window_placement == GTK_CORNER_BOTTOM_RIGHT)) ||
+	  (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR && 
+	   (scrolled_window->window_placement == GTK_CORNER_TOP_LEFT ||
+	    scrolled_window->window_placement == GTK_CORNER_BOTTOM_LEFT)))
 	child_allocation.x = (relative_allocation.x +
 			      relative_allocation.width +
 			      scrollbar_spacing +
