aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-10 16:52:21 -0600
committerTed Gould <ted@canonical.com>2009-02-10 16:52:21 -0600
commit3ca33fcc28d7f5b6abe7da934ce7d623e0f929aa (patch)
treef7edd5b057cc534f1215b04210487c5e0a20128b
parent49220be1da318eb6d3154c585fec5242c6e81194 (diff)
downloadlibayatana-indicator-3ca33fcc28d7f5b6abe7da934ce7d623e0f929aa.tar.gz
libayatana-indicator-3ca33fcc28d7f5b6abe7da934ce7d623e0f929aa.tar.bz2
libayatana-indicator-3ca33fcc28d7f5b6abe7da934ce7d623e0f929aa.zip
Adding to the convience functions for setting the desktop file
and the type of the server.
-rw-r--r--libindicate/server.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libindicate/server.c b/libindicate/server.c
index 0b46b0a..4da934f 100644
--- a/libindicate/server.c
+++ b/libindicate/server.c
@@ -372,20 +372,27 @@ void
indicate_server_set_dbus_object (const gchar * obj)
{
/* TODO */
+
return;
}
void
indicate_server_set_desktop_file (IndicateServer * server, const gchar * path)
{
- /* TODO */
+ GValue value = {0};
+ g_value_init(&value, G_TYPE_STRING);
+ g_value_set_string(&value, path);
+ g_object_set_property(G_OBJECT(server), "desktop", &value);
return;
}
void
indicate_server_set_type (IndicateServer * server, const gchar * type)
{
- /* TODO */
+ GValue value = {0};
+ g_value_init(&value, G_TYPE_STRING);
+ g_value_set_string(&value, type);
+ g_object_set_property(G_OBJECT(server), "type", &value);
return;
}