summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-22 09:07:21 +0100
committerLuke from DC <[email protected]>2022-03-23 04:31:52 +0000
commit324b0a5ce370d663707d48e86565bd243838f9c1 (patch)
treef84eacea18b22b89f1aa093606f837c9e5730f1f
parent702b057b5b761b4ab8d15648978249b64cbfd3d0 (diff)
downloadmate-applets-324b0a5ce370d663707d48e86565bd243838f9c1.tar.bz2
mate-applets-324b0a5ce370d663707d48e86565bd243838f9c1.tar.xz
battstat: implicit conversion changes signedness: 'gboolean' to 'guint'
-rw-r--r--battstat/battstat_applet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c
index 99bdedfa..30d15e75 100644
--- a/battstat/battstat_applet.c
+++ b/battstat/battstat_applet.c
@@ -726,10 +726,10 @@ check_for_updates (gpointer data)
battstat->refresh_label = FALSE;
}
- battstat->last_charging = info.charging;
+ battstat->last_charging = (info.charging != FALSE);
battstat->last_batt_life = info.percent;
battstat->last_minutes = info.minutes;
- battstat->last_acline_status = info.on_ac_power;
+ battstat->last_acline_status = (info.on_ac_power != FALSE);
battstat->last_present = info.present;
return TRUE;