diff options
author | Ted Gould <ted@canonical.com> | 2009-01-13 23:23:58 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-13 23:23:58 -0600 |
commit | cb3ce99f56585ff6f4c5b9ca2fe1e6b1eb7a972c (patch) | |
tree | 1efd94e3f85836b7837448958c54789302a3aac9 /libindicate/indicator.h | |
parent | 4670fee8fe07e67098788396d4d124181d2ecd38 (diff) | |
download | libayatana-indicator-cb3ce99f56585ff6f4c5b9ca2fe1e6b1eb7a972c.tar.gz libayatana-indicator-cb3ce99f56585ff6f4c5b9ca2fe1e6b1eb7a972c.tar.bz2 libayatana-indicator-cb3ce99f56585ff6f4c5b9ca2fe1e6b1eb7a972c.zip |
Adding in some properties to the mix
Diffstat (limited to 'libindicate/indicator.h')
-rw-r--r-- | libindicate/indicator.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libindicate/indicator.h b/libindicate/indicator.h index 45c4128..91f08a7 100644 --- a/libindicate/indicator.h +++ b/libindicate/indicator.h @@ -33,6 +33,7 @@ struct _IndicateIndicator { guint id; gboolean is_visible; IndicateServer * server; + GHashTable * properties; }; struct _IndicateIndicatorClass { @@ -43,6 +44,9 @@ struct _IndicateIndicatorClass { void (*user_display) (IndicateIndicator * indicator, gpointer data); const gchar * (*get_type) (IndicateIndicator * indicator); + void (*set_property) (IndicateIndicator * indicator, const gchar * key, const gchar * data); + const gchar * (*get_property) (IndicateIndicator * indicator, const gchar * key); + GPtrArray * (*list_properties) (IndicateIndicator * indicator); }; GType indicate_indicator_get_type(void) G_GNUC_CONST; @@ -67,6 +71,11 @@ const gchar * indicate_indicator_get_indicator_type (IndicateIndicator * indicat void indicate_indicator_user_display (IndicateIndicator * indicator); +/* Properties handling */ +void indicate_indicator_set_property (IndicateIndicator * indicator, const gchar * key, const gchar * data); +const gchar * indicate_indicator_get_property (IndicateIndicator * indicator, const gchar * key); +GPtrArray * indicate_indicator_list_properties (IndicateIndicator * indicator); + G_END_DECLS #endif /* INDICATE_INDICATOR_H_INCLUDED__ */ |