aboutsummaryrefslogtreecommitdiff
path: root/tests/test-notify.cc
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-09-03 18:43:57 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-09-04 19:15:05 +0000
commit147130a91624079dbc6237d2426f122e0f6513e6 (patch)
tree3f5f484e69eb1daa45a2e1a4feba003cfbe9f0ed /tests/test-notify.cc
parent2849569fffd380b4424278c848e9483e54e4a0c5 (diff)
downloadayatana-indicator-power-147130a91624079dbc6237d2426f122e0f6513e6.tar.gz
ayatana-indicator-power-147130a91624079dbc6237d2426f122e0f6513e6.tar.bz2
ayatana-indicator-power-147130a91624079dbc6237d2426f122e0f6513e6.zip
Fix deprecations and build warnings.
Fixes AyatanaIndicators/ayatana-indicator-power#9.
Diffstat (limited to 'tests/test-notify.cc')
-rw-r--r--tests/test-notify.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-notify.cc b/tests/test-notify.cc
index 9a11984..63214c2 100644
--- a/tests/test-notify.cc
+++ b/tests/test-notify.cc
@@ -150,8 +150,8 @@ protected:
while ((bus != nullptr) && (cleartry < 50))
{
g_usleep(100000);
- while (g_main_pending())
- g_main_iteration(true);
+ while (g_main_context_pending(NULL))
+ g_main_context_iteration(NULL, true);
cleartry++;
}