X-Git-Url: http://git.tdb.fi/?p=ext%2Fsubsurface.git;a=blobdiff_plain;f=linux.c;h=42a3c9f5f396ee2737ffedab868e27908646ee49;hp=e26b3acbde1458a3ca338d6b6da73908775a60e0;hb=5487606fda75f133e26900aede1430b8929f8e18;hpb=b0759feef87fcf820682cb36d65f2252c2cc12ae diff --git a/linux.c b/linux.c index e26b3ac..42a3c9f 100644 --- a/linux.c +++ b/linux.c @@ -2,6 +2,7 @@ /* implements Linux specific functions */ #include "display-gtk.h" #include +#define DIVELIST_DEFAULT_FONT "Sans 8" GConfClient *gconf; @@ -42,6 +43,11 @@ 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) { /* this is a no-op */ @@ -49,5 +55,18 @@ void subsurface_close_conf(void) const char *subsurface_USB_name() { - return("/dev/ttyUSB0"); + return "/dev/ttyUSB0"; +} + +const char *subsurface_icon_name() +{ + return "subsurface.svg"; +} + +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); }