]> Pileus Git - ~andy/gtk/commitdiff
filechooserentry: Set the text column of the entry completion
authorBenjamin Otte <otte@redhat.com>
Sun, 6 Nov 2011 01:33:57 +0000 (02:33 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Dec 2011 19:09:12 +0000 (20:09 +0100)
I want to use it in the next commits, but am doing this in a separate
commit so we can find side effects causing bugs easier when bisecting.

gtk/gtkfilechooserentry.c

index ed97f1abaf268262bece903f1924993beffb5a31..e2a8a546145990ff1f71412a9569723586aa157f 100644 (file)
@@ -207,6 +207,8 @@ _gtk_file_chooser_entry_init (GtkFileChooserEntry *chooser_entry)
 
   comp = gtk_entry_completion_new ();
   gtk_entry_completion_set_popup_single_match (comp, FALSE);
+  /* see docs for gtk_entry_completion_set_text_column() */
+  g_object_set (comp, "text-column", FULL_PATH_COLUMN, NULL);
 
   gtk_entry_completion_set_match_func (comp,
                                       completion_match_func,