- struct config *c;
-
- init();
-
- c = malloc(sizeof(struct config));
-
- c->graph_bgcolor = get_background_color();
- c->graph_fgcolor = get_foreground_color();
- c->graph_bg_alpha = get_graph_background_alpha();
- c->alpha_channel_enabled = is_alpha_channel_enabled();
- c->sensorlist_position = get_sensorlist_position();
- c->window_decoration_enabled = is_window_decoration_enabled();
- c->window_keep_below_enabled = is_window_keep_below_enabled();
- c->slog_enabled = is_slog_enabled();
- c->slog_interval = config_get_slog_interval();
-
- c->sensor_update_interval
- = gconf_client_get_int(client, KEY_SENSOR_UPDATE_INTERVAL, NULL);
- if (c->sensor_update_interval < 1)
- c->sensor_update_interval = 1;
-
- c->graph_update_interval
- = gconf_client_get_int(client, KEY_GRAPH_UPDATE_INTERVAL, NULL);
- if (c->graph_update_interval < 1)
- c->graph_update_interval = 1;
-
- c->graph_monitoring_duration
- = gconf_client_get_int(client, KEY_GRAPH_MONITORING_DURATION, NULL);
-
- if (c->graph_monitoring_duration < 1)
- c->graph_monitoring_duration = 10;
-
- c->sensor_values_max_length
- =
- (c->graph_monitoring_duration * 60) / c->sensor_update_interval;
- if (c->sensor_values_max_length < 3)
- c->sensor_values_max_length = 3;
-
- c->menu_bar_disabled
- = gconf_client_get_bool(client,
- KEY_INTERFACE_MENU_BAR_DISABLED,
- NULL);