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



commit edacd5d6ee89eac30891030edbb70c746bfe2fe4
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 71c615e..86f143e 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -277,6 +277,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]