X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=windows.c;h=0353adef3692625cdb077b8fe8e25de126afcd59;hb=fb504b50d0f2b881d2be6dcc657f74cca663d217;hp=e4c811984a942c70b254d17322381c3c13bd606f;hpb=192713680eb02afe6453a0a404e0eabb59758791;p=ext%2Fsubsurface.git diff --git a/windows.c b/windows.c index e4c8119..0353ade 100644 --- a/windows.c +++ b/windows.c @@ -2,6 +2,7 @@ /* implements Windows specific functions */ #include "display-gtk.h" #include +#define DIVELIST_DEFAULT_FONT "Sans 8" static HKEY hkey; @@ -72,9 +73,32 @@ 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); } + +const char *subsurface_USB_name() +{ + return "COM3"; +} + +const char *subsurface_icon_name() +{ + return "subsurface.ico"; +} + +void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar, + GtkWidget *vbox, GtkUIManager *ui_manager) +{ + if (!divelist_font) + divelist_font = DIVELIST_DEFAULT_FONT; + gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0); +}