X-Git-Url: http://git.tdb.fi/?p=ext%2Fsubsurface.git;a=blobdiff_plain;f=windows.c;h=29ef6122e50044a160640d22da81df053ebe22d9;hp=8a81737b039082ea4b551534b6072e740abb4b8d;hb=4912951e97b4040941944e1df70a91366a6a5559;hpb=0a9e5aa7353476d70c4eb9866aeda979118d04e5 diff --git a/windows.c b/windows.c index 8a81737..29ef612 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,10 +73,13 @@ const void *subsurface_get_conf(char *name, pref_type_t type) return NULL; } +void subsurface_flush_conf(void) +{ + /* this is a no-op */ +} + void subsurface_close_conf(void) { - if (RegFlushKey(hkey) != ERROR_SUCCESS) - printf("RegFlushKey failed \n"); RegCloseKey(hkey); } @@ -83,3 +87,16 @@ 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); +}