]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Enable inline completion/selection for the location/buddy/dm fields
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 23 Oct 2011 08:00:48 +0000 (11:00 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 23 Oct 2011 08:08:13 +0000 (11:08 +0300)
This makes Tab completion work, and seems a whole lot more natural.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
info.c

diff --git a/info.c b/info.c
index a9d007169c6200a39f77d69efd9b59c5a7f2700c..83ba09b2a7e68398e90bc86e1fab304ba6e09219 100644 (file)
--- a/info.c
+++ b/info.c
@@ -149,6 +149,9 @@ static GtkComboBoxEntry *text_entry(GtkWidget *box, const char *label, GtkListSt
        completion = gtk_entry_completion_new();
        gtk_entry_completion_set_text_column(completion, 0);
        gtk_entry_completion_set_model(completion, GTK_TREE_MODEL(completions));
+       gtk_entry_completion_set_inline_completion(completion, TRUE);
+       gtk_entry_completion_set_inline_selection(completion, TRUE);
+       gtk_entry_completion_set_popup_single_match(completion, FALSE);
        gtk_entry_set_completion(entry, completion);
 
        return GTK_COMBO_BOX_ENTRY(combo_box);