Well, yeah, you can leave the list of patterns out, but then they don't
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 21 Jan 2012 23:48:03 +0000 (23:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 21 Jan 2012 23:48:03 +0000 (23:48 +0000)
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40642 f5534014-38df-0310-8fa8-9805f1628bb7

ui/win32/file_dlg_win32.c

index 0a39cf1b60ccd1ba1ad2c2795b297ee95a1fb993..c308bebf279e03fdf8ad7fc699f0c98e8443eb6d 100644 (file)
@@ -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);