summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-23 11:00:48 +0300
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-23 11:08:13 +0300
commitf5d70b52e24462b4572f625eacea29ad51a71dbd (patch)
treed389da7ace8a5358d284394b049b3356ddc236d2 /info.c
parentf69fa900f6af6d3a4647cc2c2dc24228396ce084 (diff)
downloadsubsurface-f5d70b52e24462b4572f625eacea29ad51a71dbd.tar.gz
Enable inline completion/selection for the location/buddy/dm fields
This makes Tab completion work, and seems a whole lot more natural. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/info.c b/info.c
index a9d007169..83ba09b2a 100644
--- 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);