Commit Graph

215 Commits

Author SHA1 Message Date
Guy Harris 340d882fba All valid file types should have file type strings (and, currently, they
all do); get rid of the test for a null return from
wtap_file_type_string().)

If wtap_get_file_extensions_list() returns NULL, include the file type
in the list of filters, and use "*.*" as the filter.  That way the list
of filters will include all file types, even if you can't really ask
only for files of that type (actually, you can't really ask only for
files of *any* type unless you're running under a desktop environment
where file types are specified by, for example, looking for magic
numbers, as there's no guarantee that, for example, a pcap file will
have an extension at all, given that it might come from a command-line
tool that doesn't default to any extension).

svn path=/trunk/; revision=40650
2012-01-22 11:37:33 +00:00
Guy Harris 7b9deb699a We already added the separator *if* we needed it; don't add it again.
svn path=/trunk/; revision=40643
2012-01-21 23:50:06 +00:00
Guy Harris cc4bae5159 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
2012-01-21 23:48:03 +00:00
Guy Harris d494beebcf Fix calls to g_string_free() (added so as not to leak memory).
svn path=/trunk/; revision=40641
2012-01-21 23:45:15 +00:00
Guy Harris d19dba2c76 At least according to the Microsoft documentation, you don't duplicate
the list of patterns; see what happens.

svn path=/trunk/; revision=40640
2012-01-21 23:44:19 +00:00
Guy Harris 1831fc8106 What you get from wtap_get_file_extensions_list() are extensions, not
patterns; add the "*.".

svn path=/trunk/; revision=40639
2012-01-21 23:23:18 +00:00
Guy Harris 73b8659ae4 Fix print call.
svn path=/trunk/; revision=40638
2012-01-21 23:09:40 +00:00
Guy Harris 34d26e6ee0 Append the trailing ), don't overwrite the string.
svn path=/trunk/; revision=40637
2012-01-21 22:07:49 +00:00
Guy Harris f478979299 Add missing variable.
svn path=/trunk/; revision=40624
2012-01-21 11:28:02 +00:00
Guy Harris e4a193fe5e Replace wtap_file_extensions_string() with a routine that returns a
GSList of extensions for a file type, including extensions for the
compressed versions of those file types that we can read.

svn path=/trunk/; revision=40623
2012-01-21 08:59:21 +00:00
Guy Harris fe2d4368d9 New include file needs to be included.
svn path=/trunk/; revision=40567
2012-01-18 20:55:55 +00:00
Guy Harris b423352edf Just include it from the current directory.
svn path=/trunk/; revision=40537
2012-01-16 02:17:03 +00:00
Guy Harris 821166ff8b Another fix for the move of the win32 directory.
svn path=/trunk/; revision=40536
2012-01-16 02:16:30 +00:00
Guy Harris 8b96d4930d Fix up for the move from the top-level directory to the ui directory.
svn path=/trunk/; revision=40534
2012-01-16 01:45:26 +00:00
Guy Harris 0db1b9ae17 Make the win32 directory a subdirectory of the ui directory.
svn path=/trunk/; revision=40531
2012-01-16 01:26:46 +00:00