aboutsummaryrefslogtreecommitdiff
path: root/tests/im-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-12 08:20:29 -0600
committerTed Gould <ted@canonical.com>2009-02-12 08:20:29 -0600
commit31d107e227f9e6d663ab43bfbecdc5b81bc3ae64 (patch)
tree19db0263f086fde33d73696e19ff01cb0db67c43 /tests/im-client.c
parent184a04a0f101e4005794ea72217dda0f452ae97d (diff)
downloadlibayatana-indicator-31d107e227f9e6d663ab43bfbecdc5b81bc3ae64.tar.gz
libayatana-indicator-31d107e227f9e6d663ab43bfbecdc5b81bc3ae64.tar.bz2
libayatana-indicator-31d107e227f9e6d663ab43bfbecdc5b81bc3ae64.zip
Using the time property function
Diffstat (limited to 'tests/im-client.c')
-rw-r--r--tests/im-client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/im-client.c b/tests/im-client.c
index db04b8e..255ca37 100644
--- a/tests/im-client.c
+++ b/tests/im-client.c
@@ -45,10 +45,12 @@ main (int argc, char ** argv)
indicator = indicate_indicator_message_new();
indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "subtype", "im");
indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "sender", "Ted Gould");
- indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "time", "11:11");
+ GTimeVal time; g_get_current_time(&time);
+ indicate_indicator_set_property_time(INDICATE_INDICATOR(indicator), "time", &time);
indicate_indicator_show(INDICATE_INDICATOR(indicator));
- indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "time", "11:12");
+ g_get_current_time(&time);
+ indicate_indicator_set_property_time(INDICATE_INDICATOR(indicator), "time", &time);
g_signal_connect(G_OBJECT(indicator), INDICATE_INDICATOR_SIGNAL_DISPLAY, G_CALLBACK(display), NULL);