Ethereal-dev: Re: [Ethereal-dev] Multi-line text field for preferences

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Thu, 9 Feb 2006 14:29:38 +0100
On 2/9/06, ENDOH Akira <endoh@xxxxxxxxxxxxxx> wrote:
> Thanks for your comments, Guy and LEGO.
>
> The multiline text field which I planned to add would look a simple
> multiline text field, using GtkText, and its internal data structure
> would be a list of strings, usgin Glist.
>
> As for the issue of the preferences file, it'd converts a list of
> strings into a single-line string and put it into the preferences
> file as a line. I thought using a '\n' as a line separator would be ok.
>
> e.g.
> The original list contains "text/xml", "application/xml" and "foo\bar"
> will be converted to "text/xml\napplication/xml\nfoo\\bar".
>
> I don't think putting some strings in a singleline text field is
> user-friendly even though it's effective enough. In XML media types
> case, it's kinda hard stuff to read a long string. However, LEGO's
> workaround using dummy dtd files is very simple and nice.
>
> So, if no one think the multiline preference field is needed for
> ethereal (not only for the XML dissector), I'll use LEGO's
> workaround just for myself and will look forward to someone doing
> tvbparser work as LEGO explained :-)

I add added XML heuristic detection myself. Not that I didn't wanted
you to do it but for me, knowing exactly what to do, that was really a
20 minute job.

If you want to take a look at what I've done I checked it in on
http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=17228&view=rev


> Thanks,
> - endoh
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>


--
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan