aboutsummaryrefslogtreecommitdiff
path: root/libindicate/server.c
diff options
context:
space:
mode:
authorNeil Jagdish Patel <neil.patel@canonical.com>2009-02-03 10:36:09 +0100
committerNeil Jagdish Patel <neil.patel@canonical.com>2009-02-03 10:36:09 +0100
commit67d296734248fdb9a2c322e726ff7652bdbf6095 (patch)
tree617a505d28f0223c330ceb513bb74b0d52be1940 /libindicate/server.c
parenta0440fa801049ef2db084e9d56b4dd53e4719079 (diff)
downloadlibayatana-indicator-67d296734248fdb9a2c322e726ff7652bdbf6095.tar.gz
libayatana-indicator-67d296734248fdb9a2c322e726ff7652bdbf6095.tar.bz2
libayatana-indicator-67d296734248fdb9a2c322e726ff7652bdbf6095.zip
Allow sub-classes of server to emit signals using three new public functions
Diffstat (limited to 'libindicate/server.c')
-rw-r--r--libindicate/server.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/libindicate/server.c b/libindicate/server.c
index cd35871..ab64304 100644
--- a/libindicate/server.c
+++ b/libindicate/server.c
@@ -705,3 +705,30 @@ indicate_server_get_next_id (IndicateServer * server)
return 0;
}
+/* Signal emission functions for sub-classes of the server */
+void
+indicate_server_emit_indicator_added (IndicateServer *server, guint id, const gchar *type)
+{
+ g_return_if_fail (INDICATE_IS_SERVER (server));
+ g_return_if_fail (type);
+
+ g_signal_emit(server, signals[INDICATOR_ADDED], 0, id, type);
+}
+
+void
+indicate_server_emit_indicator_removed (IndicateServer *server, guint id, const gchar *type)
+{
+ g_return_if_fail (INDICATE_IS_SERVER (server));
+ g_return_if_fail (type);
+
+ g_signal_emit(server, signals[INDICATOR_REMOVED], 0, id, type);
+}
+
+void
+indicate_server_emit_indicator_modified (IndicateServer *server, guint id, const gchar *property)
+{
+ g_return_if_fail (INDICATE_IS_SERVER (server));
+ g_return_if_fail (property);
+
+ g_signal_emit(server, signals[INDICATOR_MODIFIED], 0, id, property);
+}