aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/reference/libindicate-decl.txt20
-rw-r--r--tests/listen-and-print.c14
2 files changed, 34 insertions, 0 deletions
diff --git a/docs/reference/libindicate-decl.txt b/docs/reference/libindicate-decl.txt
index b9657c5..e3280bd 100644
--- a/docs/reference/libindicate-decl.txt
+++ b/docs/reference/libindicate-decl.txt
@@ -237,6 +237,16 @@ void
IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, gchar * propertydata, gpointer data
</USER_FUNCTION>
<USER_FUNCTION>
+<NAME>indicate_listener_get_property_time_cb</NAME>
+<RETURNS>void </RETURNS>
+IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, GTimeVal * propertydata, gpointer data
+</USER_FUNCTION>
+<USER_FUNCTION>
+<NAME>indicate_listener_get_property_icon_cb</NAME>
+<RETURNS>void </RETURNS>
+IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, GdkPixbuf * propertydata, gpointer data
+</USER_FUNCTION>
+<USER_FUNCTION>
<NAME>indicate_listener_get_server_property_cb</NAME>
<RETURNS>void </RETURNS>
IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data
@@ -257,6 +267,16 @@ void
IndicateListener * listener,IndicateListenerServer * server,IndicateListenerIndicator * indicator,gchar * property,indicate_listener_get_property_cb callback,gpointer data
</FUNCTION>
<FUNCTION>
+<NAME>indicate_listener_get_property_time</NAME>
+<RETURNS>void </RETURNS>
+IndicateListener * listener,IndicateListenerServer * server,IndicateListenerIndicator * indicator,gchar * property,indicate_listener_get_property_time_cb callback,gpointer data
+</FUNCTION>
+<FUNCTION>
+<NAME>indicate_listener_get_property_icon</NAME>
+<RETURNS>void </RETURNS>
+IndicateListener * listener,IndicateListenerServer * server,IndicateListenerIndicator * indicator,gchar * property,indicate_listener_get_property_icon_cb callback,gpointer data
+</FUNCTION>
+<FUNCTION>
<NAME>indicate_listener_display</NAME>
<RETURNS>void </RETURNS>
IndicateListener * listener,IndicateListenerServer * server,IndicateListenerIndicator * indicator
diff --git a/tests/listen-and-print.c b/tests/listen-and-print.c
index a4c8c25..2535160 100644
--- a/tests/listen-and-print.c
+++ b/tests/listen-and-print.c
@@ -94,9 +94,23 @@ indicator_modified (IndicateListener * listener, IndicateListenerServer * server
}
static void
+type_cb (IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data)
+{
+ g_debug("Indicator Server Type: %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), value);
+}
+
+static void
+desktop_cb (IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data)
+{
+ g_debug("Indicator Server Desktop: %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), value);
+}
+
+static void
server_added (IndicateListener * listener, IndicateListenerServer * server, gchar * type, gpointer data)
{
g_debug("Indicator Server Added: %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), type);
+ indicate_listener_server_get_type(listener, server, type_cb, NULL);
+ indicate_listener_server_get_desktop(listener, server, desktop_cb, NULL);
}
static void