From: robxnano <91250-robxnano@users.noreply.gitlab.gnome.org> Date: Sat, 7 Jan 2023 18:14:36 +0000 (+0000) Subject: filechoosernativewin32: Set default extension X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~8^2~86^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=57ebf26f15e8a34e4e2a2bd3bf5851e7ff858120;p=gtk4.git filechoosernativewin32: Set default extension --- diff --git a/gtk/gtkfilechoosernativewin32.c b/gtk/gtkfilechoosernativewin32.c index 3362477736..a75d929415 100644 --- a/gtk/gtkfilechoosernativewin32.c +++ b/gtk/gtkfilechoosernativewin32.c @@ -602,6 +602,10 @@ filechooser_win32_thread (gpointer _data) if (FAILED (hr)) g_warning_hr ("Can't set file types", hr); + hr = IFileDialog_SetDefaultExtension (pfd, L""); + if (FAILED (hr)) + g_warning_hr ("Can't set default extension", hr); + if (data->self->current_filter) { GListModel *filters;