X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=gtk-gui.c;h=6f48c734f06d990e0f70e005a6af37068ce519fd;hb=725e4582d9c7174b70fe197bb27345960457549e;hp=7d0e95c43ecdf5b8885ff44dd4a1693b75b744c6;hpb=2d1a316d848441a7d1137cb51b1ee0b8222aaa74;p=ext%2Fsubsurface.git diff --git a/gtk-gui.c b/gtk-gui.c index 7d0e95c..6f48c73 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;