From: Matthias Clasen Date: Fri, 21 Oct 2022 01:41:18 +0000 (-0400) Subject: filechooserentry: Fix completions X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~146^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5310abbcf701ffe52687767e7baba4c5c4c6fd91;p=gtk4.git filechooserentry: Fix completions Before we can drop them, lets make them work. This was broken since 4.0, I assume :( --- diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index 1d5c66c435..39f7c3dceb 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -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);