]> git.tdb.fi Git - ext/subsurface.git/blobdiff - linux.c
Correctly free the GSList in file_open
[ext/subsurface.git] / linux.c
diff --git a/linux.c b/linux.c
index 2edcf85a1ebebfab5b4f32a21e87f04561b29e84..bec4f08fb2e96b2284cf12ecaf7be29cb5ede78d 100644 (file)
--- a/linux.c
+++ b/linux.c
@@ -2,6 +2,7 @@
 /* implements Linux specific functions */
 #include "display-gtk.h"
 #include <gconf/gconf-client.h>
+#define DIVELIST_DEFAULT_FONT "Sans 8"
 
 GConfClient *gconf;
 
@@ -46,3 +47,21 @@ void subsurface_close_conf(void)
 {
        /* this is a no-op */
 }
+
+const char *subsurface_USB_name()
+{
+       return "/dev/ttyUSB0";
+}
+
+const char *subsurface_icon_name()
+{
+       return "subsurface.svg";
+}
+
+void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
+               GtkWidget *vbox)
+{
+       if (!divelist_font)
+               divelist_font = DIVELIST_DEFAULT_FONT;
+       gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0);
+}