aboutsummaryrefslogtreecommitdiffstats
path: root/ui/win32
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-01-21 23:48:03 +0000
committerGuy Harris <guy@alum.mit.edu>2012-01-21 23:48:03 +0000
commitcc4bae5159b14633ee0684493f3bc6fcc3a7f7fb (patch)
tree312f8a4a66724c48cc69b75096283c0a7fb6159e /ui/win32
parentd494beebcfde57cdc6c8a8ad3dc307b1201cc393 (diff)
Well, yeah, you can leave the list of patterns out, but then they don't
show up in the UI, and they appear to show up in the UI in the Windows apps I've seen, so I guess Windows apps put the list of patterns into the description. svn path=/trunk/; revision=40642
Diffstat (limited to 'ui/win32')
-rw-r--r--ui/win32/file_dlg_win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c
index 0a39cf1b60..c308bebf27 100644
--- a/ui/win32/file_dlg_win32.c
+++ b/ui/win32/file_dlg_win32.c
@@ -1489,7 +1489,8 @@ build_file_type_list(gboolean save, int *item_to_select) {
}
/* Construct the description. */
- g_string_printf(description_str, "%s", wtap_file_type_string(ft));
+ g_string_printf(description_str, "%s (%s)", wtap_file_type_string(ft),
+ pattern_str->str);
str16 = utf_8to16(description_str->str);
sa = g_array_append_vals(sa, str16, (guint) strlen(description_str->str));
sa = g_array_append_val(sa, zero);