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

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

From: guy@xxxxxxxxxxxx (Guy Harris)
Date: Fri, 9 Jul 2004 16:13:22 -0500 (CDT)
guy         2004/07/09 16:13:22 CDT

  Modified files:
    gtk                  main.c recent.c 
  Log:
  Don't allow non-positive values for the main window width and height
  values in the "recent" file.  Also, check for syntax errors in numerical
  values.
  
  Set the main window height, as well as the main window width, to default
  values before we read in the values from the "recent" file.  (Use
  non-positive values here if you want the default to be "don't set the
  geometry" - note that you can't set one to a positive value and the
  other one to a non-positive value and expect only one to be set; they
  *both* have to be positive in order for the size to be set.)
  
  Treat non-positive values for those settings in the "recent" structure
  as an indication that we don't have values from them and that we should
  therefore not set the window size.
  
  Revision  Changes    Path
  1.456     +14 -4     ethereal/gtk/main.c
  1.18      +46 -13    ethereal/gtk/recent.c