[gtk+/filechooserentry: 45/51] filechooserentry: Set minimum key length to 0



commit 9f1ef4a4112faaa876b804c3325eb69c8c0aacdf
Author: Benjamin Otte <otte redhat com>
Date:   Mon Nov 7 03:51:25 2011 +0100

    filechooserentry: Set minimum key length to 0
    
    We want the empty chooser to show possible completions, too.

 gtk/gtkfilechooserentry.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index ecd5107..159e80f 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -191,6 +191,7 @@ _gtk_file_chooser_entry_init (GtkFileChooserEntry *chooser_entry)
 
   comp = gtk_entry_completion_new ();
   gtk_entry_completion_set_popup_single_match (comp, FALSE);
+  gtk_entry_completion_set_minimum_key_length (comp, 0);
   /* see docs for gtk_entry_completion_set_text_column() */
   g_object_set (comp, "text-column", FULL_PATH_COLUMN, NULL);
 



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