#define KEY_INTERFACE_WINDOW_DIVIDER_POS \
"/apps/psensor/interface/window_divider_pos"
+#define KEY_INTERFACE_TEMPERATURE_UNIT \
+"/apps/psensor/interface/temperature_unit"
+
GConfClient *client;
static char *get_string(char *key, char *default_value)
c->window_h = 200;
}
+ c->temperature_unit = gconf_client_get_int
+ (client, KEY_INTERFACE_TEMPERATURE_UNIT, NULL);
+
return c;
}
KEY_INTERFACE_WINDOW_DIVIDER_POS,
c->window_divider_pos,
NULL);
+
+ gconf_client_set_int(client,
+ KEY_INTERFACE_TEMPERATURE_UNIT,
+ c->temperature_unit,
+ NULL);
+
}