[Galago-commits] r2592 - in trunk/libgalago: . tests
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Mon Feb 27 06:16:21 PST 2006
Author: chipx86
Date: 2006-02-27 06:16:17 -0800 (Mon, 27 Feb 2006)
New Revision: 2592
Modified:
trunk/libgalago/ChangeLog
trunk/libgalago/tests/get-presence.c
Log:
Don't show idle details if the account is not idle.
Modified: trunk/libgalago/ChangeLog
===================================================================
--- trunk/libgalago/ChangeLog 2006-02-27 09:43:07 UTC (rev 2591)
+++ trunk/libgalago/ChangeLog 2006-02-27 14:16:17 UTC (rev 2592)
@@ -1,3 +1,8 @@
+Mon Feb 27 00:10:56 PST 2006 Christian Hammond <chipx86 at chipx86.com>
+
+ * tests/get-presence.c:
+ - Don't show idle details if the account is not idle.
+
Sun Feb 26 19:37:48 PST 2006 Christian Hammond <chipx86 at chipx86.com>
* libgalago/galago-context.c:
Modified: trunk/libgalago/tests/get-presence.c
===================================================================
--- trunk/libgalago/tests/get-presence.c 2006-02-27 09:43:07 UTC (rev 2591)
+++ trunk/libgalago/tests/get-presence.c 2006-02-27 14:16:17 UTC (rev 2592)
@@ -80,9 +80,9 @@
person = galago_account_get_person(account);
- printf("Service: %s\n", galago_service_get_name(service));
- printf("Username: %s\n", galago_account_get_username(account));
- printf("Display name: %s\n", galago_account_get_display_name(account));
+ printf("Service: %s\n", galago_service_get_name(service));
+ printf("Username: %s\n", galago_account_get_username(account));
+ printf("Display name: %s\n", galago_account_get_display_name(account));
if (presence == NULL)
{
@@ -90,11 +90,17 @@
}
else
{
- printf("Idle: %d\n", galago_presence_is_idle(presence));
+ gboolean idle = galago_presence_is_idle(presence);
+
+ printf("Idle: %s\n", idle ? "yes" : "no");
+
+ if (idle)
+ {
printf("Idle Start Time: %d\n",
- (int)galago_presence_get_idle_start_time(presence));
- printf("Idle Time Length: %d\n",
- (int)galago_presence_get_idle_time(presence));
+ (int)galago_presence_get_idle_start_time(presence));
+ printf("Idle Time Length: %d\n",
+ (int)galago_presence_get_idle_time(presence));
+ }
printf("Status(es):\n");
More information about the galago-commits
mailing list