filechooserentry: Fix completions

Before we can drop them, lets make them work.

This was broken since 4.0, I assume :(
This commit is contained in:
Matthias Clasen
2022-10-20 21:41:18 -04:00
parent 490d4b0b9e
commit 5310abbcf7

View File

@@ -637,7 +637,7 @@ finished_loading_cb (GtkFileSystemModel *model,
completion = gtk_entry_get_completion (GTK_ENTRY (chooser_entry));
update_inline_completion (chooser_entry);
if (gtk_widget_has_focus (GTK_WIDGET (chooser_entry)))
if (gtk_widget_has_focus (GTK_WIDGET (gtk_entry_get_text_widget (GTK_ENTRY (chooser_entry)))))
{
gtk_entry_completion_complete (completion);
gtk_entry_completion_insert_prefix (completion);