Commit d30a4845 authored by Jaap Haitsma's avatar Jaap Haitsma Committed by Richard Hughes

Add myself.

2006-01-09  Jaap Haitsma  <jaap@haitsma.org>

* AUTHORS: Add myself.

* src/gpm-tray-icon.c: Add myself as an author.

* src/gpm-power.{c|h}: Fix multi battery setups. Change remaining time to seconds instead of minutes.

* src/gpm-manager.c: Use seconds instead of minutes
parent 53f0e2ce
Richard Hughes <richard@hughsie.com>
William Jon McCann <mccann@jhu.edu>
Jaap A. Haitsma <jaap@haitsma.org>
2006-01-09 Jaap Haitsma <jaap@haitsma.org>
* AUTHORS: Add myself.
* src/gpm-tray-icon.c: Add myself as an author.
* src/gpm-power.{c|h}: Fix multi battery setups. Change remaining time
to seconds instead of minutes.
* src/gpm-manager.c: Use seconds instead of minutes
2005-01-17 Richard Hughes <richard@hughsie.com>
* configure.in, NEWS: Update version to 2.13.5 so we match the GNOME
......
......@@ -534,7 +534,7 @@ static void
maybe_notify_battery_power_changed (GpmManager *manager,
const char *kind,
int percentage,
glong minutes,
int remaining_time,
gboolean discharging,
gboolean charging,
gboolean percentagechanged)
......@@ -548,9 +548,9 @@ maybe_notify_battery_power_changed (GpmManager *manager,
primary = (strcmp (kind, "primary") == 0);
g_debug ("percentage = %d, minutes = %ld, discharging = %d, "
g_debug ("percentage = %d, remaining_time = %d, discharging = %d, "
"charging = %d, primary = %d, percentagechanged=%i",
percentage, minutes, discharging, charging, primary, percentagechanged);
percentage, remaining_time, discharging, charging, primary, percentagechanged);
if (manager->priv->tray_icon == NULL) {
return;
......@@ -599,7 +599,7 @@ maybe_notify_battery_power_changed (GpmManager *manager,
/* critical warning */
if (percentage == critical_threshold) {
g_debug ("battery is critical limit!");
remaining = get_timestring_from_minutes (minutes);
remaining = get_timestring_from_minutes (remaining_time/60);
message = g_strdup_printf (_("You have approximately <b>%s</b> "
"of remaining battery life (%d%%). "
......@@ -620,7 +620,7 @@ maybe_notify_battery_power_changed (GpmManager *manager,
/* low warning */
if (percentage < low_threshold) {
g_debug ("battery is low!");
remaining = get_timestring_from_minutes (minutes);
remaining = get_timestring_from_minutes (remaining_time/60);
g_assert (remaining);
message = g_strdup_printf (_("You have approximately <b>%s</b> of remaining battery life (%d%%). "
......@@ -952,7 +952,7 @@ static void
power_battery_power_changed_cb (GpmPower *power,
const char *kind,
int percentage,
glong minutes,
int remaining_time,
gboolean discharging,
gboolean charging,
gboolean percentagechanged,
......@@ -961,7 +961,7 @@ power_battery_power_changed_cb (GpmPower *power,
maybe_notify_battery_power_changed (manager,
kind,
percentage,
minutes,
remaining_time,
discharging,
charging,
percentagechanged);
......
This diff is collapsed.
......@@ -70,9 +70,9 @@ gboolean gpm_power_get_battery_percentage (GpmPower *power,
const char *kind,
gint *percentage,
GError **error);
gboolean gpm_power_get_battery_minutes (GpmPower *power,
gboolean gpm_power_get_battery_seconds (GpmPower *power,
const char *kind,
gint64 *minutes,
gint *seconds,
GError **error);
gboolean gpm_power_get_battery_charging (GpmPower *power,
const char *kind,
......
......@@ -226,6 +226,7 @@ gpm_tray_icon_show_about_cb (GtkAction *action,
const char *authors[] = {
"Richard Hughes <richard@hughsie.com>",
"William Jon McCann <mccann@jhu.edu>",
"Jaap A. Haitsma <jaap@haitsma.org>",
NULL};
const char *documenters[] = {
"Richard Hughes <richard@hughsie.com>",
......
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