]> git.tdb.fi Git - ext/subsurface.git/blobdiff - windows.c
Move the "Import" function from the File menu to the Log menu
[ext/subsurface.git] / windows.c
index 53531cd010cfa9609cb4c710164734ad05e0f983..0353adef3692625cdb077b8fe8e25de126afcd59 100644 (file)
--- 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;