diff options
author | Ted Gould <ted@canonical.com> | 2009-02-11 20:32:31 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-02-11 20:32:31 -0600 |
commit | fe7b7c483347e7f6437978716e501de43c12a346 (patch) | |
tree | 4fd4b828fc2b91f4d72c9780d660001fa50f54d1 /libindicate/server.c | |
parent | 7e01f3aa1892aef74ac2d0a2323ffd277d29f35d (diff) | |
parent | 2f2fdfe9a4e312dde374e000a02dd61e8a40c608 (diff) | |
download | libayatana-indicator-fe7b7c483347e7f6437978716e501de43c12a346.tar.gz libayatana-indicator-fe7b7c483347e7f6437978716e501de43c12a346.tar.bz2 libayatana-indicator-fe7b7c483347e7f6437978716e501de43c12a346.zip |
Merging in the changes to make it so that properties work right, get
handled properly by the listener and have convience functions. Also
lots of little important cleanups.
Diffstat (limited to 'libindicate/server.c')
-rw-r--r-- | libindicate/server.c | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/libindicate/server.c b/libindicate/server.c index 766e312..0c74376 100644 --- a/libindicate/server.c +++ b/libindicate/server.c @@ -106,7 +106,7 @@ static void get_property (GObject * obj, guint id, GValue * value, GParamSpec * static void indicate_server_class_init (IndicateServerClass * class) { - g_debug("Server Class Initialized"); + /* g_debug("Server Class Initialized"); */ GObjectClass * gobj; gobj = G_OBJECT_CLASS(class); @@ -182,7 +182,7 @@ indicate_server_class_init (IndicateServerClass * class) static void indicate_server_init (IndicateServer * server) { - g_debug("Server Object Initialized"); + /* g_debug("Server Object Initialized"); */ IndicateServerPrivate * priv = INDICATE_SERVER_GET_PRIVATE(server); @@ -396,6 +396,34 @@ indicate_server_remove_indicator (IndicateServer * server, IndicateIndicator * i return; } +void +indicate_server_set_dbus_object (const gchar * obj) +{ + /* TODO */ + + return; +} + +void +indicate_server_set_desktop_file (IndicateServer * server, const gchar * path) +{ + 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) +{ + 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; +} + static IndicateServer * default_indicate_server = NULL; IndicateServer * |