[gtk+/gtk-2-24] GtkFileChooserEntry: move the cursor after the user chooses a completion from the list



commit 8f9487fca7bd8215c2408551f06c5888c9a15fc8
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Mar 10 16:02:56 2016 -0600

    GtkFileChooserEntry: move the cursor after the user chooses a completion from the list
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756450

 gtk/gtkfilechooserentry.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index cac29ba..7350793 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -263,6 +263,8 @@ match_selected_callback (GtkEntryCompletion  *completion,
                             -1,
                             &pos);
 
+  gtk_editable_set_position (GTK_EDITABLE (chooser_entry), pos);
+
   g_free (path);
 
   return TRUE;


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