X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fui_appindicator.c;h=277688276e302290c5e2817b222bcd71e26f7343;hp=25ec3aba2a0168dc010626caced6eaeeb2e74570;hb=0ef6b5963fe07dcdf417058327a35b1655e44498;hpb=73ff7e6c18592a262ddd4a57eeab3b7603c0963d diff --git a/src/ui_appindicator.c b/src/ui_appindicator.c index 25ec3ab..2776882 100644 --- a/src/ui_appindicator.c +++ b/src/ui_appindicator.c @@ -98,7 +98,7 @@ create_sensor_menu_items(const struct ui_psensor *ui, GtkMenu *menu) celsius = ui->config->temperature_unit == CELSIUS; - sorted_sensors = ui_get_sensors_ordered_by_position(ui); + sorted_sensors = ui_get_sensors_ordered_by_position(ui->sensors); n = psensor_list_size(sorted_sensors); menu_items = malloc((n + 1) * sizeof(GtkWidget *)); @@ -166,7 +166,7 @@ static void update_label(struct ui_psensor *ui) char *label, *str, *tmp, *guide; struct psensor **p; - p = ui_get_sensors_ordered_by_position(ui); + p = ui_get_sensors_ordered_by_position(ui->sensors); label = NULL; guide = NULL; while (*p) {