Index: gtk/gtkmenuitem.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkmenuitem.c,v
retrieving revision 1.89
diff -u -b -B -p -r1.89 gtkmenuitem.c
--- gtk/gtkmenuitem.c	20 Oct 2002 22:29:57 -0000	1.89
+++ gtk/gtkmenuitem.c	25 Oct 2002 23:12:00 -0000
@@ -222,6 +222,9 @@ gtk_menu_item_init (GtkMenuItem *menu_it
   menu_item->toggle_size = 0;
   menu_item->accelerator_width = 0;
   menu_item->show_submenu_indicator = FALSE;
+  if (gtk_widget_get_direction (GTK_WIDGET (menu_item)) == GTK_TEXT_DIR_RTL)
+    menu_item->submenu_direction = GTK_DIRECTION_LEFT;
+  else
   menu_item->submenu_direction = GTK_DIRECTION_RIGHT;
   menu_item->submenu_placement = GTK_TOP_BOTTOM;
   menu_item->right_justify = FALSE;
@@ -904,6 +926,7 @@ gtk_menu_item_position_menu (GtkMenu  *m
   gint screen_height;
   gint twidth, theight;
   gint tx, ty;
+  GtkTextDirection direction;
 
   g_return_if_fail (menu != NULL);
   g_return_if_fail (x != NULL);
@@ -912,6 +935,8 @@ gtk_menu_item_position_menu (GtkMenu  *m
   menu_item = GTK_MENU_ITEM (user_data);
   widget = GTK_WIDGET (user_data);
 
+  direction = gtk_widget_get_direction (widget);
+
   twidth = GTK_WIDGET (menu)->requisition.width;
   theight = GTK_WIDGET (menu)->requisition.height;
 
@@ -931,6 +956,8 @@ gtk_menu_item_position_menu (GtkMenu  *m
   switch (menu_item->submenu_placement)
     {
     case GTK_TOP_BOTTOM:
+      if (direction == GTK_TEXT_DIR_RTL) 
+	tx += widget->allocation.width - twidth;
       if ((ty + widget->allocation.height + theight) <= screen_height)
 	ty += widget->allocation.height;
       else if ((ty - theight) >= 0)
@@ -942,6 +969,9 @@ gtk_menu_item_position_menu (GtkMenu  *m
       break;
 
     case GTK_LEFT_RIGHT:
+      if (direction == GTK_TEXT_DIR_RTL)
+	menu_item->submenu_direction = GTK_DIRECTION_LEFT;
+      else
       menu_item->submenu_direction = GTK_DIRECTION_RIGHT;
       parent_menu_item = GTK_MENU (widget->parent)->parent_menu_item;
       if (parent_menu_item)
