From 55256284a380043320b61b0f5f38741b083e94ab Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 12 Jan 2009 23:14:09 -0600 Subject: Fleshing out more functions, we can now return a list of ids. Need to test with more. --- libindicate/server.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libindicate/server.h') diff --git a/libindicate/server.h b/libindicate/server.h index 486252c..8a61293 100644 --- a/libindicate/server.h +++ b/libindicate/server.h @@ -40,7 +40,7 @@ struct _IndicateServerClass { gboolean (*get_desktop) (IndicateServer * server, gchar ** desktop_path, GError **error); gboolean (*get_indicator_count) (IndicateServer * server, guint * count, GError **error); gboolean (*get_indicator_count_by_type) (IndicateServer * server, gchar * type, guint * count, GError **error); - gboolean (*get_indicator_list) (IndicateServer * server, guint ** indicators, GError ** error); + gboolean (*get_indicator_list) (IndicateServer * server, GArray ** indicators, GError ** error); gboolean (*get_indicator_list_by_type) (IndicateServer * server, gchar * type, guint ** indicators, GError ** error); gboolean (*get_indicator_property) (IndicateServer * server, guint id, gchar * property, gchar ** value, GError **error); gboolean (*get_indicator_property_group) (IndicateServer * server, guint id, gchar ** properties, gchar *** value, GError **error); @@ -75,7 +75,7 @@ void indicate_server_set_default (IndicateServer * server); gboolean indicate_server_get_desktop (IndicateServer * server, gchar ** desktop_path, GError **error); gboolean indicate_server_get_indicator_count (IndicateServer * server, guint * count, GError **error); gboolean indicate_server_get_indicator_count_by_type (IndicateServer * server, gchar * type, guint * count, GError **error); -gboolean indicate_server_get_indicator_list (IndicateServer * server, guint ** indicators, GError ** error); +gboolean indicate_server_get_indicator_list (IndicateServer * server, GArray ** indicators, GError ** error); gboolean indicate_server_get_indicator_list_by_type (IndicateServer * server, gchar * type, guint ** indicators, GError ** error); gboolean indicate_server_get_indicator_property (IndicateServer * server, guint id, gchar * property, gchar ** value, GError **error); gboolean indicate_server_get_indicator_property_group (IndicateServer * server, guint id, gchar ** properties, gchar *** value, GError **error); -- cgit v1.2.3 From 0b4e54d7e08c652fd0468b307f0fe6eeb987a149 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 13 Jan 2009 13:43:32 -0600 Subject: Ah, we weren't checking if we were visible. Now things are better. --- libindicate/server.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libindicate/server.h') diff --git a/libindicate/server.h b/libindicate/server.h index e119cfd..3844b03 100644 --- a/libindicate/server.h +++ b/libindicate/server.h @@ -24,6 +24,7 @@ struct _IndicateServer { gchar * path; GSList * indicators; + gboolean visible; // TODO: Should have a more robust way to track this, but this'll work for now guint num_hidden; -- cgit v1.2.3 From 82dee9414fc6ae41006f1664c1be0636a15ca4dd Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 13 Jan 2009 14:18:47 -0600 Subject: Making it so that the indicators all have unique IDs --- libindicate/server.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libindicate/server.h') 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); -- cgit v1.2.3 From c14592279f3feaad53e397155ecc515e5623d940 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 14 Jan 2009 10:11:17 -0600 Subject: Chaning the property list parameters to be pointer arrays. --- libindicate/server.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libindicate/server.h') diff --git a/libindicate/server.h b/libindicate/server.h index 4eb45cb..75a1ffb 100644 --- a/libindicate/server.h +++ b/libindicate/server.h @@ -47,8 +47,8 @@ struct _IndicateServerClass { gboolean (*get_indicator_list) (IndicateServer * server, GArray ** indicators, GError ** error); gboolean (*get_indicator_list_by_type) (IndicateServer * server, gchar * type, guint ** indicators, GError ** error); gboolean (*get_indicator_property) (IndicateServer * server, guint id, gchar * property, gchar ** value, GError **error); - 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 (*get_indicator_property_group) (IndicateServer * server, guint id, GPtrArray * properties, GPtrArray ** value, GError **error); + gboolean (*get_indicator_properties) (IndicateServer * server, guint id, GPtrArray ** properties, GError **error); gboolean (*show_indicator_to_user) (IndicateServer * server, guint id, GError ** error); guint (*get_next_id) (IndicateServer * server); }; @@ -86,8 +86,8 @@ gboolean indicate_server_get_indicator_count_by_type (IndicateServer * server, g gboolean indicate_server_get_indicator_list (IndicateServer * server, GArray ** indicators, GError ** error); gboolean indicate_server_get_indicator_list_by_type (IndicateServer * server, gchar * type, guint ** indicators, GError ** error); gboolean indicate_server_get_indicator_property (IndicateServer * server, guint id, gchar * property, gchar ** value, GError **error); -gboolean indicate_server_get_indicator_property_group (IndicateServer * server, guint id, gchar ** properties, gchar *** value, GError **error); -gboolean indicate_server_get_indicator_properties (IndicateServer * server, guint id, gchar *** properties, GError **error); +gboolean indicate_server_get_indicator_property_group (IndicateServer * server, guint id, GPtrArray * properties, GPtrArray ** value, GError **error); +gboolean indicate_server_get_indicator_properties (IndicateServer * server, guint id, GPtrArray ** properties, GError **error); gboolean indicate_server_show_indicator_to_user (IndicateServer * server, guint id, GError ** error); G_END_DECLS -- cgit v1.2.3