Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal print.c ethereal.c print.h

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 12 Jul 1999 23:38:19 -0500 (CDT)
guy         1999/07/12 23:38:17 CDT

  Modified files:
    .                    print.c ethereal.c print.h 
  Log:
  When printing a packet, do it from the protocol tree, not from the GTK+
  tree constructed from the protocol tree:
  
  	1) The value of "level" field of GTK+ tree items appears to
  	   depend on various random things - see a change I made to
  	   "packet-dns.c" a while ago, to change the order in which
  	   items were put in the tree, so that DNS trees printed with
  	   correct indentation - and, right now, we appear to be doing
  	   *something* wrong, as some packets I printed from one file
  	   here had randomly bogus indentation; I could probably track
  	   the problem down and fix it, but that might just hold us
  	   until we accidentally do something *else* wrong by GTK+'s
  	   lights.
  
  	   The new code provides its own tree level as it goes.
  
  	2) The new code is independent of GTK+, so it could be used with
  	   other toolkits, or with non-GUI variants of Ethereal.
  
  	3) This may make it easier to add a "Print..." menu item to let
  	   the user print packets other than the currently selected
  	   packet.
  
  Make the internal routines used to print the packet static.
  
  For the "Print Packet" menu item, put up a message box if they haven't
  yet selected a packet.
  
  Revision  Changes    Path
  1.12      +126 -114  ethereal/print.c
  1.55      +7 -2      ethereal/ethereal.c
  1.7       +2 -4      ethereal/print.h