diff options
author | Ted Gould <ted@canonical.com> | 2009-01-09 16:37:54 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-09 16:37:54 -0600 |
commit | 55794df35a7c9b3d44351be737fd5ef491655207 (patch) | |
tree | 04b5a85df71aa63b94d003b2975bb4c3af6893b3 | |
parent | 791b5f802bf0d0ffb72d39c85da512332c889453 (diff) | |
download | libayatana-indicator-55794df35a7c9b3d44351be737fd5ef491655207.tar.gz libayatana-indicator-55794df35a7c9b3d44351be737fd5ef491655207.tar.bz2 libayatana-indicator-55794df35a7c9b3d44351be737fd5ef491655207.zip |
Adding in an indicator to the test and fixing a typo
-rw-r--r-- | libindicate/server.c | 4 | ||||
-rw-r--r-- | libindicate/server.h | 4 | ||||
-rw-r--r-- | libindicate/tests/indicate-and-crash.c | 3 |
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); |