Commit 2307a22f authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

battstat: fix -Wsign-compare warnings

parent 504355d3
......@@ -2,6 +2,7 @@
<schema id="org.gnome.gnome-applets.battstat">
<key name="red-value" type="i">
<default>15</default>
<range min="1" max="25"/>
<summary>Red value level</summary>
<description>The battery level below which the battery is displayed as red. Also the value at which the low battery warning is displayed.</description>
</key>
......
......@@ -705,7 +705,8 @@ update_battery_image (ProgressData *battstat, int batt_percent, int batt_time)
GdkColor *color, *darkcolor;
GdkPixbuf *pixbuf;
guint progress_value;
gint i, x;
guint i;
gint x;
int batt_life;
if (!battstat->showbattery)
......
......@@ -183,7 +183,7 @@ battstat_upower_get_battery_info( BatteryStatus *status )
int charging = 0;
/* For each physical battery bay... */
int i;
unsigned int i;
for( i = 0; i < devices->len; i++ )
{
UpDevice *upd = g_ptr_array_index( devices, i );
......
......@@ -103,9 +103,9 @@ typedef struct _BattstatApplet
GtkWidget *hbox_ptr;
/* flags set from gsettings or the properties dialog */
guint red_val;
guint orange_val;
guint yellow_val;
gint red_val;
gint orange_val;
gint yellow_val;
gboolean red_value_is_time;
gboolean lowbattnotification;
gboolean fullbattnot;
......@@ -147,11 +147,11 @@ typedef struct _BattstatApplet
int timeout;
/* last_* for the benefit of the check_for_updates function */
guint last_batt_life;
guint last_acline_status;
gint last_batt_life;
gint last_acline_status;
StatusPixmapIndex last_pixmap_index;
guint last_charging;
guint last_minutes;
gint last_charging;
gint last_minutes;
gboolean last_present;
} ProgressData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment