From cc4bae5159b14633ee0684493f3bc6fcc3a7f7fb Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 21 Jan 2012 23:48:03 +0000 Subject: [PATCH] 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 --- ui/win32/file_dlg_win32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);