X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=windows.c;h=0353adef3692625cdb077b8fe8e25de126afcd59;hb=725e4582d9c7174b70fe197bb27345960457549e;hp=53531cd010cfa9609cb4c710164734ad05e0f983;hpb=1d51c7772996705fb69b2b3433cd94af3543583d;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;