static struct psensor **sensors;
static GtkMenuItem **menu_items;
static bool appindicator_supported = true;
static struct psensor **sensors;
static GtkMenuItem **menu_items;
static bool appindicator_supported = true;
celsius = ui->config->temperature_unit == CELSIUS;
sorted_sensors = ui_get_sensors_ordered_by_position(ui);
n = psensor_list_size(sorted_sensors);
celsius = ui->config->temperature_unit == CELSIUS;
sorted_sensors = ui_get_sensors_ordered_by_position(ui);
n = psensor_list_size(sorted_sensors);
sensors = malloc((n + 1) * sizeof(struct psensor *));
for (i = 0, j = 0; i < n; i++) {
if (config_is_appindicator_enabled(sorted_sensors[i]->id)) {
sensors = malloc((n + 1) * sizeof(struct psensor *));
for (i = 0, j = 0; i < n; i++) {
if (config_is_appindicator_enabled(sorted_sensors[i]->id)) {
- ok = gtk_builder_add_from_file
- (builder,
- PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "psensor-appindicator.glade",
- &error);
+ ok = gtk_builder_add_from_file(builder, GLADE_FILE, &error);
gtk_builder_connect_signals(builder, ui);
g_object_ref(G_OBJECT(menu));
gtk_builder_connect_signals(builder, ui);
g_object_ref(G_OBJECT(menu));
if (attention && status == APP_INDICATOR_STATUS_ACTIVE)
app_indicator_set_status(indicator,
if (attention && status == APP_INDICATOR_STATUS_ACTIVE)
app_indicator_set_status(indicator,