Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/gtk proto_draw.c

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

From: Gilbert Ramirez Jr. <gram@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 10 Jan 2001 23:51:11 -0600 (CST)
gram        2001/01/10 23:51:11 CST

  Modified files:
    gtk                  proto_draw.c 
  Log:
  Get rid of the magic "+4" and properly calculate the lineheight so
  that automatic scrolling of the hex pane continues to work, but without
  any special magic constant. This works for any size font (as long
  as the font isn't so big as to cause a line wrap), and has been
  tested on Linux and NT4. The lineheight calculation was found in the
  source code to the GtkText widget (gtk/gtktext.c in the GTK+ distribution).
  
  Revision  Changes    Path
  1.25      +4 -4      ethereal/gtk/proto_draw.c