mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a6b89b3254
commit
8677721e85
21 changed files with 2684 additions and 2445 deletions
12
divelist.c
12
divelist.c
|
|
@ -54,6 +54,8 @@
|
|||
|
||||
static short dive_list_changed = FALSE;
|
||||
|
||||
short autogroup = FALSE;
|
||||
|
||||
dive_trip_t *dive_trip_list;
|
||||
|
||||
unsigned int amount_selected;
|
||||
|
|
@ -73,6 +75,13 @@ void dump_selection(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
void set_autogroup(gboolean value)
|
||||
{
|
||||
/* if we keep the UI paradigm, this needs to toggle
|
||||
* the checkbox on the autogroup menu item */
|
||||
autogroup = value;
|
||||
}
|
||||
|
||||
dive_trip_t *find_trip_by_idx(int idx)
|
||||
{
|
||||
dive_trip_t *trip = dive_trip_list;
|
||||
|
|
@ -906,8 +915,9 @@ void merge_dive_index(int i, struct dive *a)
|
|||
add_single_dive(i, res);
|
||||
delete_single_dive(i+1);
|
||||
delete_single_dive(i+1);
|
||||
|
||||
#if USE_GTK_UI
|
||||
dive_list_update_dives();
|
||||
#endif
|
||||
mark_divelist_changed(TRUE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue