From 3ca33fcc28d7f5b6abe7da934ce7d623e0f929aa Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 10 Feb 2009 16:52:21 -0600 Subject: Adding to the convience functions for setting the desktop file and the type of the server. --- libindicate/server.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libindicate/server.c') 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; } -- cgit v1.2.3