aboutsummaryrefslogtreecommitdiff
path: root/libindicate/server.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-13 14:18:47 -0600
committerTed Gould <ted@canonical.com>2009-01-13 14:18:47 -0600
commit82dee9414fc6ae41006f1664c1be0636a15ca4dd (patch)
tree45661b6ba97d84d773577539373956c61cd41ca7 /libindicate/server.h
parentf64b5d9528ff05508224d48652edbfde1d497243 (diff)
downloadlibayatana-indicator-82dee9414fc6ae41006f1664c1be0636a15ca4dd.tar.gz
libayatana-indicator-82dee9414fc6ae41006f1664c1be0636a15ca4dd.tar.bz2
libayatana-indicator-82dee9414fc6ae41006f1664c1be0636a15ca4dd.zip
Making it so that the indicators all have unique IDs
Diffstat (limited to 'libindicate/server.h')
-rw-r--r--libindicate/server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libindicate/server.h b/libindicate/server.h
index 3844b03..4eb45cb 100644
--- a/libindicate/server.h
+++ b/libindicate/server.h
@@ -25,6 +25,7 @@ struct _IndicateServer {
gchar * path;
GSList * indicators;
gboolean visible;
+ guint current_id;
// TODO: Should have a more robust way to track this, but this'll work for now
guint num_hidden;
@@ -49,6 +50,7 @@ struct _IndicateServerClass {
gboolean (*get_indicator_property_group) (IndicateServer * server, guint id, gchar ** properties, gchar *** value, GError **error);
gboolean (*get_indicator_properties) (IndicateServer * server, guint id, gchar *** properties, GError **error);
gboolean (*show_indicator_to_user) (IndicateServer * server, guint id, GError ** error);
+ guint (*get_next_id) (IndicateServer * server);
};
GType indicate_server_get_type (void) G_GNUC_CONST;
@@ -70,6 +72,7 @@ void indicate_server_set_desktop_file (const gchar * path);
void indicate_server_show (IndicateServer * server);
void indicate_server_hide (IndicateServer * server);
+guint indicate_server_get_next_id (IndicateServer * server);
void indicate_server_add_indicator (IndicateServer * server, IndicateIndicator * indicator);
void indicate_server_remove_indicator (IndicateServer * server, IndicateIndicator * indicator);