diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-03 11:04:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-03 11:37:09 -0700 |
commit | 8677721e85a344e29782cfc2ab838edb8da9215b (patch) | |
tree | 0b3094c3ce528773a9b4051bd2fcd622acf4fc56 /info-gtk.c | |
parent | a6b89b3254adf7c559fe6fb89367cc50c9f41900 (diff) | |
download | subsurface-8677721e85a344e29782cfc2ab838edb8da9215b.tar.gz |
Remove the majority of the Gtk related code
- rip all Gtk code from qt-gui.cpp
- don't compile Gtk specific files
- don't link against Gtk libraries
- don't compile modules we don't use at all (yet)
- use #if USE_GTK_UI on the remaining files to disable Gtk related parts
- disable the non-functional Cochran support while I'm at it
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info-gtk.c')
-rw-r--r-- | info-gtk.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/info-gtk.c b/info-gtk.c index ebba07b73..b386b9d4d 100644 --- a/info-gtk.c +++ b/info-gtk.c @@ -736,6 +736,14 @@ int edit_multi_dive_info(struct dive *single_dive) return success; } +int edit_dive_info(struct dive *dive, gboolean newdive) +{ + if (!dive || (!newdive && !amount_selected)) + return 0; + + return edit_multi_dive_info(dive); +} + static GtkWidget *frame_box(GtkWidget *vbox, const char *fmt, ...) { va_list ap; |