Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/plugins plugin_api.c plugin_api.h plugin_tab

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Aug 2001 03:28:20 -0500 (CDT)
guy         2001/08/28 03:28:20 CDT

  Modified files:
    plugins              plugin_api.c plugin_api.h plugin_table.h 
  Log:
  Get rid of "proto_tree_add_notext()" - if you create a subtree using it,
  but, before you set the text, you throw an exception while putting stuff
  under the subtree, you end up with an absolutely blank protocol tree
  item, which is really gross.  Instead of calling
  "proto_tree_add_notext()", call "proto_tree_add_text()" with at least a
  minimal label - yes, it does mean you do some work that will probably be
  unnecessary, but, absent a scheme to arrange to do that work if it *is*
  necessary (e.g., catching exceptions), the alternative is an ugly
  protocol tree display.
  
  Revision  Changes    Path
  1.21      +1 -4      ethereal/plugins/plugin_api.c
  1.21      +1 -4      ethereal/plugins/plugin_api.h
  1.22      +1 -5      ethereal/plugins/plugin_table.h