summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 7d0e95c43..6f48c734f 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -423,7 +423,9 @@ static void preferences_dialog(GtkWidget *w, gpointer data)
subsurface_set_conf("SAC", PREF_BOOL, BOOL_TO_PTR(visible_cols.sac));
subsurface_set_conf("OTU", PREF_BOOL, BOOL_TO_PTR(visible_cols.otu));
subsurface_set_conf("divelist_font", PREF_STRING, divelist_font);
- subsurface_close_conf();
+
+ /* Flush the changes out to the system */
+ subsurface_flush_conf();
}
gtk_widget_destroy(dialog);
}
@@ -769,6 +771,11 @@ void run_ui(void)
gtk_main();
}
+void exit_ui(void)
+{
+ subsurface_close_conf();
+}
+
typedef struct {
cairo_rectangle_int_t rect;
const char *text;