aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-09 16:37:54 -0600
committerTed Gould <ted@canonical.com>2009-01-09 16:37:54 -0600
commit55794df35a7c9b3d44351be737fd5ef491655207 (patch)
tree04b5a85df71aa63b94d003b2975bb4c3af6893b3 /libindicate
parent791b5f802bf0d0ffb72d39c85da512332c889453 (diff)
downloadlibayatana-indicator-55794df35a7c9b3d44351be737fd5ef491655207.tar.gz
libayatana-indicator-55794df35a7c9b3d44351be737fd5ef491655207.tar.bz2
libayatana-indicator-55794df35a7c9b3d44351be737fd5ef491655207.zip
Adding in an indicator to the test and fixing a typo
Diffstat (limited to 'libindicate')
-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);