mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Merge branch 'filechooser-completions' into 'master'
filechooser: Prevent over-eager completions Closes #2995 See merge request GNOME/gtk!2347
This commit is contained in:
commit
0d98bab82b
@ -5088,11 +5088,18 @@ gtk_file_chooser_widget_set_current_name (GtkFileChooser *chooser,
|
||||
const char *name)
|
||||
{
|
||||
GtkFileChooserWidget *impl = GTK_FILE_CHOOSER_WIDGET (chooser);
|
||||
GtkEntryCompletion *completion;
|
||||
|
||||
g_return_if_fail (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE);
|
||||
|
||||
pending_select_files_free (impl);
|
||||
|
||||
completion = gtk_entry_get_completion (GTK_ENTRY (impl->location_entry));
|
||||
gtk_entry_completion_set_popup_completion (completion, FALSE);
|
||||
|
||||
gtk_editable_set_text (GTK_EDITABLE (impl->location_entry), name);
|
||||
|
||||
gtk_entry_completion_set_popup_completion (completion, TRUE);
|
||||
}
|
||||
|
||||
static char *
|
||||
|
Loading…
Reference in New Issue
Block a user