summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechoosernativewin32.c
diff options
context:
space:
mode:
authorrobxnano <91250-robxnano@users.noreply.gitlab.gnome.org>2023-01-07 18:14:36 +0000
committerMatthias Clasen <mclasen@redhat.com>2023-01-07 18:14:36 +0000
commit57ebf26f15e8a34e4e2a2bd3bf5851e7ff858120 (patch)
tree5955be87c61d485cddd552d65eecb6f6d5423e19 /gtk/gtkfilechoosernativewin32.c
parent7d34e7e0f73ccb99fd8d9d529f2a2ec71c02da1a (diff)
downloadgtk+-57ebf26f15e8a34e4e2a2bd3bf5851e7ff858120.tar.gz
filechoosernativewin32: Set default extension
Diffstat (limited to 'gtk/gtkfilechoosernativewin32.c')
-rw-r--r--gtk/gtkfilechoosernativewin32.c4
1 files changed, 4 insertions, 0 deletions
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;