Don't allow non-positive values for the main window width and height
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 9 Jul 2004 21:13:22 +0000 (21:13 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 9 Jul 2004 21:13:22 +0000 (21:13 +0000)
commit9df1147fbadd6e0d636b3af8b9debd4d4ec9e6b1
tree53eedb386646d2be168c75263ca06adbbcd8ae69
parentc01b336ce3e98c73da1d8ec0a36fcb6906090d56
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11353 f5534014-38df-0310-8fa8-9805f1628bb7
gtk/main.c
gtk/recent.c