[gtk+] entry: Set text direction information on text handles



commit 10cb7f90e442a17501ad0a62316661aca201608b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 11 16:18:02 2015 +0200

    entry: Set text direction information on text handles
    
    This way the handles point to the right side on the presence of rtl/ltr
    text.

 gtk/gtkentry.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index c1b3ab7..61c3ba4 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -4174,6 +4174,7 @@ gtk_entry_move_handle (GtkEntry              *entry,
 
       _gtk_text_handle_set_visible (priv->text_handle, pos, TRUE);
       _gtk_text_handle_set_position (priv->text_handle, pos, &rect);
+      _gtk_text_handle_set_direction (priv->text_handle, pos, priv->resolved_dir);
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]