X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=windows.c;h=0353adef3692625cdb077b8fe8e25de126afcd59;hb=b0ba22a06879697efa7c429b9df8e13feaa02480;hp=53531cd010cfa9609cb4c710164734ad05e0f983;hpb=605e063203f8a2a35a5c3be1e7129e80099dd68a;p=ext%2Fsubsurface.git diff --git a/windows.c b/windows.c index 53531cd..0353ade 100644 --- a/windows.c +++ b/windows.c @@ -73,10 +73,15 @@ const void *subsurface_get_conf(char *name, pref_type_t type) return NULL; } -void subsurface_close_conf(void) +void subsurface_flush_conf(void) { + /* I wonder if we should even do this - it's apparently very expensive */ if (RegFlushKey(hkey) != ERROR_SUCCESS) printf("RegFlushKey failed \n"); +} + +void subsurface_close_conf(void) +{ RegCloseKey(hkey); } @@ -91,7 +96,7 @@ const char *subsurface_icon_name() } void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar, - GtkWidget *vbox) + GtkWidget *vbox, GtkUIManager *ui_manager) { if (!divelist_font) divelist_font = DIVELIST_DEFAULT_FONT;