aboutsummaryrefslogtreecommitdiff
path: root/libindicate/listener.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-12 10:47:54 -0600
committerTed Gould <ted@canonical.com>2009-02-12 10:47:54 -0600
commitee2747416fa823d805af6d417dcd5f6159399f11 (patch)
tree8f9f2c67c27ba1888f9c6b39b7cfccfa2116cb6e /libindicate/listener.h
parent8a2cf3491cfd800cf6525b4d9180136976809311 (diff)
downloadlibayatana-indicator-ee2747416fa823d805af6d417dcd5f6159399f11.tar.gz
libayatana-indicator-ee2747416fa823d805af6d417dcd5f6159399f11.tar.bz2
libayatana-indicator-ee2747416fa823d805af6d417dcd5f6159399f11.zip
Rebuilding the way that priorities get done so that we can handle a time and icon version of the functions so that apps don't have to worry about those details.
Diffstat (limited to 'libindicate/listener.h')
-rw-r--r--libindicate/listener.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libindicate/listener.h b/libindicate/listener.h
index 3d8c7ef..ed40630 100644
--- a/libindicate/listener.h
+++ b/libindicate/listener.h
@@ -33,6 +33,8 @@ License version 3 and version 2.1 along with this program. If not, see
#include <glib.h>
#include <glib-object.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
#include "indicator.h"
#include "server.h"
@@ -79,6 +81,8 @@ struct _IndicateListenerClass {
GType indicate_listener_get_type (void) G_GNUC_CONST;
typedef void (*indicate_listener_get_property_cb) (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, gchar * propertydata, gpointer data);
+typedef void (*indicate_listener_get_property_time_cb) (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, GTimeVal * propertydata, gpointer data);
+typedef void (*indicate_listener_get_property_icon_cb) (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, GdkPixbuf * propertydata, gpointer data);
typedef void (*indicate_listener_get_server_property_cb) (IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data);
/* Create a new listener */
@@ -90,6 +94,18 @@ void indicate_listener_get_property (IndicateListener * l
gchar * property,
indicate_listener_get_property_cb callback,
gpointer data);
+void indicate_listener_get_property_time (IndicateListener * listener,
+ IndicateListenerServer * server,
+ IndicateListenerIndicator * indicator,
+ gchar * property,
+ indicate_listener_get_property_time_cb callback,
+ gpointer data);
+void indicate_listener_get_property_icon (IndicateListener * listener,
+ IndicateListenerServer * server,
+ IndicateListenerIndicator * indicator,
+ gchar * property,
+ indicate_listener_get_property_icon_cb callback,
+ gpointer data);
void indicate_listener_display (IndicateListener * listener,
IndicateListenerServer * server,
IndicateListenerIndicator * indicator);