diff options
author | Robert Tari <robert@tari.in> | 2020-08-31 16:41:56 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2020-08-31 16:41:56 +0200 |
commit | cacf569a9a95ea39c78b124987bf4dae72557f27 (patch) | |
tree | 6e58ce183724b17b1e89550dac80e51a4865b361 /tests/test-service.cc | |
parent | a8b9159200845d9ec6547e511379d8275cc11b2a (diff) | |
download | ayatana-indicator-session-cacf569a9a95ea39c78b124987bf4dae72557f27.tar.gz ayatana-indicator-session-cacf569a9a95ea39c78b124987bf4dae72557f27.tar.bz2 ayatana-indicator-session-cacf569a9a95ea39c78b124987bf4dae72557f27.zip |
Fix deprecated symbols and build warnings
Diffstat (limited to 'tests/test-service.cc')
-rw-r--r-- | tests/test-service.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test-service.cc b/tests/test-service.cc index aad454a..196419b 100644 --- a/tests/test-service.cc +++ b/tests/test-service.cc @@ -24,6 +24,13 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "backend-mock-guest.h" #include "backend-mock-actions.h" +gboolean onMainLoopQuit(gpointer pUserData) +{ + g_main_loop_quit((GMainLoop*)pUserData); + + return FALSE; +} + /*** **** ***/ @@ -169,7 +176,7 @@ class ServiceTest: public GTestDBusFixture G_BUS_NAME_WATCHER_FLAGS_NONE, on_name_appeared, // quits the loop NULL, this, NULL); - const guint timer_id = g_timeout_add_seconds (TIME_LIMIT_SEC, (GSourceFunc)g_main_loop_quit, loop); + const guint timer_id = g_timeout_add_seconds(TIME_LIMIT_SEC, onMainLoopQuit, loop); g_main_loop_run (loop); g_source_remove (timer_id); g_bus_unwatch_name (watch_id); |