2 /* implements Linux specific functions */
3 #include "display-gtk.h"
4 #include <gconf/gconf-client.h>
8 static char *gconf_name(char *name)
10 static char buf[255] = "/apps/subsurface/";
12 snprintf(buf, 255, "/apps/subsurface/%s", name);
17 void subsurface_open_conf(void)
19 gconf = gconf_client_get_default();
22 void subsurface_set_conf(char *name, pref_type_t type, const void *value)
26 gconf_client_set_bool(gconf, gconf_name(name), value != NULL, NULL);
29 gconf_client_set_string(gconf, gconf_name(name), value, NULL);
33 const void *subsurface_get_conf(char *name, pref_type_t type)
37 return gconf_client_get_bool(gconf, gconf_name(name), NULL) ? (void *) 1 : NULL;
39 return gconf_client_get_string(gconf, gconf_name(name), NULL);
41 /* we shouldn't get here */
45 void subsurface_close_conf(void)
50 const char *subsurface_USB_name()
52 return "/dev/ttyUSB0";
55 const char *subsurface_icon_name()
57 return "subsurface.svg";