[gnome-screensaver] dbus command GetActiveTime returns an unsigned int
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] dbus command GetActiveTime returns an unsigned int
- Date: Wed, 15 Feb 2012 13:05:11 +0000 (UTC)
commit ecfa197a20139927f3e5db75311a4eaaf26c3bfd
Author: Romuald Brunet <romuald gandi net>
Date: Wed Feb 15 12:43:58 2012 +0100
dbus command GetActiveTime returns an unsigned int
fix a bug in gnome-screensaver-command (always retuned "active for
1099853556 seconds")
https://bugzilla.gnome.org/show_bug.cgi?id=670131
src/gnome-screensaver-command.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-screensaver-command.c b/src/gnome-screensaver-command.c
index 418bdee..def692d 100644
--- a/src/gnome-screensaver-command.c
+++ b/src/gnome-screensaver-command.c
@@ -250,7 +250,7 @@ do_command (GDBusConnection *connection)
}
body = g_dbus_message_get_body (reply);
- g_variant_get (body, "(i)", &t);
+ g_variant_get (body, "(u)", &t);
g_object_unref (reply);
g_print (ngettext ("The screensaver has been active for %d second.\n", "The screensaver has been active for %d seconds.\n", t), t);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]