diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-01-21 23:23:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-01-21 23:23:18 +0000 |
commit | 1831fc810602e9ea703189051a8aeb5a58d83541 (patch) | |
tree | c5bebe9d25029ac9744b2c352d65f542b4d8fb85 /ui | |
parent | 73b8659ae4cf797e6b7d8139e0505c674367cc27 (diff) |
What you get from wtap_get_file_extensions_list() are extensions, not
patterns; add the "*.".
svn path=/trunk/; revision=40639
Diffstat (limited to 'ui')
-rw-r--r-- | ui/win32/file_dlg_win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c index 533ff84915..8d37e95c16 100644 --- a/ui/win32/file_dlg_win32.c +++ b/ui/win32/file_dlg_win32.c @@ -1479,7 +1479,7 @@ build_file_type_list(gboolean save, int *item_to_select) { sep = '('; for (extension = extensions_list; extension != NULL; extension = g_slist_next(extension)) { - g_string_append_printf(str, "%c%s", sep, (char *)extension->data); + g_string_append_printf(str, "%c*.%s", sep, (char *)extension->data); sep = ';'; } g_string_append_printf(str, ")"); @@ -1493,7 +1493,7 @@ build_file_type_list(gboolean save, int *item_to_select) { extension = g_slist_next(extension)) { if (sep != '\0') g_string_append_c(str, sep); - g_string_append_printf(str, "%c%s", sep, (char *)extension->data); + g_string_append_printf(str, "%c*.%s", sep, (char *)extension->data); sep = ';'; } str16 = utf_8to16(str->str); |