diff options
author | Ted Gould <ted@canonical.com> | 2009-02-03 11:57:57 +0100 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-02-03 11:57:57 +0100 |
commit | 0223011f6c1da31f11e8d5e44f0276be34a2d7fe (patch) | |
tree | 51b471186b1c882e42476579ffb4d05f18d5a700 /libindicate | |
parent | 21a212b200cfec762cf7405454b69410e7ba630a (diff) | |
parent | 3c879bc2428ec4d9db9e8031ced6b931bed2b210 (diff) | |
download | libayatana-indicator-0223011f6c1da31f11e8d5e44f0276be34a2d7fe.tar.gz libayatana-indicator-0223011f6c1da31f11e8d5e44f0276be34a2d7fe.tar.bz2 libayatana-indicator-0223011f6c1da31f11e8d5e44f0276be34a2d7fe.zip |
Merge from trunk
Diffstat (limited to 'libindicate')
-rw-r--r-- | libindicate/server.c | 27 | ||||
-rw-r--r-- | libindicate/server.h | 5 |
2 files changed, 32 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); +} diff --git a/libindicate/server.h b/libindicate/server.h index 482fb9a..eccf3c6 100644 --- a/libindicate/server.h +++ b/libindicate/server.h @@ -81,6 +81,11 @@ gboolean indicate_server_get_indicator_property_group (IndicateServer * server, gboolean indicate_server_get_indicator_properties (IndicateServer * server, guint id, gchar *** properties, GError **error); gboolean indicate_server_show_indicator_to_user (IndicateServer * server, guint id, GError ** error); +/* Signal emission functions for sub-classes of the server */ +void indicate_server_emit_indicator_added (IndicateServer *server, guint id, const gchar *type); +void indicate_server_emit_indicator_removed (IndicateServer *server, guint id, const gchar *type); +void indicate_server_emit_indicator_modified (IndicateServer *server, guint id, const gchar *property); + G_END_DECLS #endif /* INDICATE_SERVER_H_INCLUDED__ */ |