mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Move get_units() to prefs.c
get_units() returns the current unit preference, thus it belongs in prefs.c rather than gtk-gui.c Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ff5a8b0650
commit
b696c61389
2 changed files with 5 additions and 5 deletions
|
@ -73,11 +73,6 @@ static GtkWidget *dive_profile;
|
|||
|
||||
GtkActionGroup *action_group;
|
||||
|
||||
struct units *get_units()
|
||||
{
|
||||
return &prefs.units;
|
||||
}
|
||||
|
||||
void repaint_dive(void)
|
||||
{
|
||||
update_dive(current_dive);
|
||||
|
|
5
prefs.c
5
prefs.c
|
@ -2,6 +2,11 @@
|
|||
|
||||
#include "dive.h"
|
||||
|
||||
struct units *get_units()
|
||||
{
|
||||
return &prefs.units;
|
||||
}
|
||||
|
||||
static void set_bool_conf(char *name, gboolean value, gboolean def)
|
||||
{
|
||||
if (value == def) {
|
||||
|
|
Loading…
Reference in a new issue