From aec1741226036036b2498f7b664221e649b4ff81 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 10 Mar 2023 16:59:27 +0100 Subject: Explicitly mark deprecated functions and use substitutes --- tests/test-libappindicator.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'tests/test-libappindicator.c') diff --git a/tests/test-libappindicator.c b/tests/test-libappindicator.c index 7bf4c62..68c6a93 100644 --- a/tests/test-libappindicator.c +++ b/tests/test-libappindicator.c @@ -2,9 +2,11 @@ Tests for the libappindicator library. Copyright 2009 Canonical Ltd. +Copyright 2023 Robert Tari Authors: Ted Gould + Robert Tari This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published @@ -80,28 +82,28 @@ test_libappindicator_prop_signals (void) signaled = FALSE; - app_indicator_set_icon(ci, "bob"); + app_indicator_set_icon_full (ci, "bob", NULL); g_assert(signaled); signaled = FALSE; - app_indicator_set_icon(ci, "bob"); + app_indicator_set_icon_full (ci, "bob", NULL); g_assert(!signaled); signaled = FALSE; - app_indicator_set_icon(ci, "al"); + app_indicator_set_icon_full (ci, "al", NULL); g_assert(signaled); signaled = FALSE; - app_indicator_set_attention_icon(ci, "bob"); + app_indicator_set_attention_icon_full (ci, "bob", NULL); g_assert(signaled); signaled = FALSE; - app_indicator_set_attention_icon(ci, "bob"); + app_indicator_set_attention_icon_full (ci, "bob", NULL); g_assert(!signaled); signaled = FALSE; - app_indicator_set_attention_icon(ci, "al"); + app_indicator_set_attention_icon_full (ci, "al", NULL); g_assert(signaled); @@ -136,7 +138,7 @@ test_libappindicator_init_set_props (void) g_assert(ci != NULL); app_indicator_set_status(ci, APP_INDICATOR_STATUS_ACTIVE); - app_indicator_set_attention_icon(ci, "my-attention-name"); + app_indicator_set_attention_icon_full (ci, "my-attention-name", NULL); app_indicator_set_title(ci, "My Title"); g_assert(!g_strcmp0("my-id", app_indicator_get_id(ci))); @@ -160,7 +162,7 @@ test_libappindicator_init_with_props (void) APP_INDICATOR_CATEGORY_APPLICATION_STATUS); app_indicator_set_status (ci, APP_INDICATOR_STATUS_ACTIVE); - app_indicator_set_attention_icon (ci, "my-attention-name"); + app_indicator_set_attention_icon_full (ci, "my-attention-name", NULL); g_assert(ci != NULL); -- cgit v1.2.3