]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Merge branch 'quit-handling' of git://github.com/dirkhh/subsurface
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 21 Sep 2011 19:28:20 +0000 (12:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 21 Sep 2011 19:28:20 +0000 (12:28 -0700)
* 'quit-handling' of git://github.com/dirkhh/subsurface:
  Use the last (or only) filename on command line as default for saving
  Show the "save changes" dialog before the main window is destroyed
  Check for changes at regular 'quit' events as well
  Catch changes to the info of the current dive when quitting
  Tracking changes to tanks is trivial
  Simplistic first attempt to get changes saved when quitting subsurface

1  2 
dive.h

diff --combined dive.h
index fc458d04d4292df0a36bf99428c84b66c169aad2,9cdfd61b0b77b290d6041e1187378b1284f6f918..e1a5bc007e69fe76d032a2c81ce80dcb80897034
--- 1/dive.h
--- 2/dive.h
+++ b/dive.h
@@@ -86,8 -86,6 +86,8 @@@ typedef struct 
        pressure_t start, end;
  } cylinder_t;
  
 +extern double get_depth_units(unsigned int mm, int *frac, const char **units);
 +
  static inline double mm_to_feet(int mm)
  {
        return mm * 0.00328084;
@@@ -197,6 -195,7 +197,7 @@@ static inline struct dive *get_dive(uns
  
  extern void parse_xml_init(void);
  extern void parse_xml_file(const char *filename, GError **error);
+ extern void set_filename(const char *filename);
  
  extern void show_dive_info(struct dive *);
  extern void flush_dive_info_changes(struct dive *);