aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libindicate/server.c4
-rw-r--r--libindicate/server.h4
-rw-r--r--libindicate/tests/indicate-and-crash.c3
3 files changed, 7 insertions, 4 deletions
diff --git a/libindicate/server.c b/libindicate/server.c
index b6edcbf..755f814 100644
--- a/libindicate/server.c
+++ b/libindicate/server.c
@@ -103,7 +103,7 @@ indicate_server_show (IndicateServer * server)
}
void
-indicator_server_add_indicator (IndicateServer * server, IndicateIndicator * indicator)
+indicate_server_add_indicator (IndicateServer * server, IndicateIndicator * indicator)
{
g_object_ref(indicator);
server->indicators = g_slist_prepend(server->indicators, indicator);
@@ -111,7 +111,7 @@ indicator_server_add_indicator (IndicateServer * server, IndicateIndicator * ind
}
void
-indicator_server_remove_indicator (IndicateServer * server, IndicateIndicator * indicator)
+indicate_server_remove_indicator (IndicateServer * server, IndicateIndicator * indicator)
{
server->indicators = g_slist_remove(server->indicators, indicator);
g_object_unref(indicator);
diff --git a/libindicate/server.h b/libindicate/server.h
index ba766cb..cf52c0e 100644
--- a/libindicate/server.h
+++ b/libindicate/server.h
@@ -56,8 +56,8 @@ void indicate_server_set_desktop_file (const gchar * path);
void indicate_server_show (IndicateServer * server);
void indicate_server_hide (IndicateServer * server);
-void indicator_server_add_indicator (IndicateServer * server, IndicateIndicator * indicator);
-void indicator_server_remove_indicator (IndicateServer * server, IndicateIndicator * indicator);
+void indicate_server_add_indicator (IndicateServer * server, IndicateIndicator * indicator);
+void indicate_server_remove_indicator (IndicateServer * server, IndicateIndicator * indicator);
IndicateServer * indicate_server_ref_default (void);
void indicate_server_set_default (IndicateServer * server);
diff --git a/libindicate/tests/indicate-and-crash.c b/libindicate/tests/indicate-and-crash.c
index c927d77..624cc0c 100644
--- a/libindicate/tests/indicate-and-crash.c
+++ b/libindicate/tests/indicate-and-crash.c
@@ -7,6 +7,9 @@ gboolean crashfunc (gpointer data) { *(int *)data = 5; }
int
main (int argc, char ** argv)
{
+ g_type_init();
+
+ IndicateIndicator * indicator = indicate_indicator_new();
g_timeout_add_seconds(15, crashfunc, NULL);