request for review and testing: default file name

Dirk Hohndel dirk at hohndel.org
Sun Sep 9 17:43:59 PDT 2012


This is reasonably well tested on Linux and somewhat tested on
MacOS. Completely untested (beyond compliling) on Windows.

I /think/ it implements a reasonable logic:

if filenames are given, everything is like today.
if no filename is given, it attempts to open the default file and sets
it (even if the open failed) as the existing file name (so a first time
user will get that as the default name when savin).
The preferences dialog allows a change of the default file location.

I'd especially appreciate feedback from Mac and Windows users - and of
course general code review.

/D

The following changes since commit b6812946319080699f6071656f09d402d23d3e46:

  Merge branch 'print_selection' of http://ambre.pingoured.fr/cgit/subsurface (2012-09-06 12:48:02 -0700)

are available in the git repository at:


  git://git.hohndel.org/subsurface.git defaultfile

for you to fetch changes up to b73f29fea3ae88a06d8f773a6d48510520c127f0:

  First cut of adding a default file name (2012-09-09 17:38:01 -0700)

----------------------------------------------------------------
Dirk Hohndel (1):
      First cut of adding a default file name

 display-gtk.h |  2 --
 dive.h        |  2 ++
 gtk-gui.c     | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 linux.c       | 21 ++++++++++++++++++
 macos.c       | 19 ++++++++++++++++
 main.c        | 11 +++++++++-
 windows.c     | 24 ++++++++++++++++++++
 7 files changed, 168 insertions(+), 6 deletions(-)


More information about the subsurface mailing list