[Xfce4-commits] <xfce4-power-manager:nick/upower-session> Make the return error a warning.
Nick Schermer
noreply at xfce.org
Fri Mar 23 22:04:03 CET 2012
Updating branch refs/heads/nick/upower-session
to b7ed9415a83c820642e403cadd005983aa0f36b6 (commit)
from 5649230bedbfcccf4785ea68e0872516ef5e59f2 (commit)
commit b7ed9415a83c820642e403cadd005983aa0f36b6
Author: Nick Schermer <nick at xfce.org>
Date: Fri Mar 23 22:03:04 2012 +0100
Make the return error a warning.
Dialog is unneeded in case dbus timed out.
src/xfpm-power.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index 4fb608c..abcd214 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -958,7 +958,7 @@ xfpm_power_async_upower_cb (DBusGProxy *proxy,
if (!dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID, G_TYPE_INVALID))
{
- xfce_dialog_show_error (NULL, error, _("Failed to suspend the system"));
+ g_warning ("Failed to suspend the system: %s", error->message);
g_error_free (error);
}
}
@@ -976,6 +976,7 @@ xfpm_power_async_upower (XfpmPower *power,
method,
xfpm_power_async_upower_cb,
power,
+ NULL,
G_TYPE_INVALID,
G_TYPE_INVALID);
More information about the Xfce4-commits
mailing list