gnome-power-manager r3375 - in branches/gnome-2-26: . src



Author: rhughes
Date: Mon Mar 23 16:20:25 2009
New Revision: 3375
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3375&view=rev

Log:
2009-03-23  Richard Hughes  <richard hughsie com>

* src/gpm-engine.c: (gpm_engine_device_check_capacity):
Fix the low capacity warning to fix rh#489832


Modified:
   branches/gnome-2-26/ChangeLog
   branches/gnome-2-26/src/gpm-engine.c

Modified: branches/gnome-2-26/src/gpm-engine.c
==============================================================================
--- branches/gnome-2-26/src/gpm-engine.c	(original)
+++ branches/gnome-2-26/src/gpm-engine.c	Mon Mar 23 16:20:25 2009
@@ -484,7 +484,7 @@
 	ret = gconf_client_get_bool (engine->priv->conf, GPM_CONF_NOTIFY_LOW_CAPACITY, NULL);
 	if (ret) {
 		egg_debug ("** EMIT: low-capacity");
-		g_signal_emit (engine, signals [LOW_CAPACITY], 0, obj->type, obj->capacity);
+		g_signal_emit (engine, signals [LOW_CAPACITY], 0, obj->type, (guint) obj->capacity);
 	}
 	return TRUE;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]