aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2024-05-19 17:05:46 +0200
committerRobert Tari <robert@tari.in>2024-05-19 17:05:46 +0200
commit202b468afd2ee7ac82584cd5ffd9a10a7a8929a6 (patch)
treeb9a185dab5e9a994c87fdae46b2767b1e0a2e441 /src/main.c
parentf62a910194e5ef415b31e87dbb8f028a2367666f (diff)
downloadayatana-indicator-sound-202b468afd2ee7ac82584cd5ffd9a10a7a8929a6.tar.gz
ayatana-indicator-sound-202b468afd2ee7ac82584cd5ffd9a10a7a8929a6.tar.bz2
ayatana-indicator-sound-202b468afd2ee7ac82584cd5ffd9a10a7a8929a6.zip
src/main.c: Fix type casts
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index a6c83b5..188f31d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,6 +1,6 @@
/*
* Copyright 2015 Canonical Ltd.
- * Copyright 2023 Robert Tari <robert@tari.in>
+ * Copyright 2023-2024 Robert Tari <robert@tari.in>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -65,12 +65,12 @@ on_bus_acquired(GDBusConnection *connection,
}
pgloop = pa_glib_mainloop_new(NULL);
- options = indicator_sound_options_gsettings_new();
+ options = INDICATOR_SOUND_OPTIONS (indicator_sound_options_gsettings_new ());
accounts_service_access = accounts_service_access_new();
volume = volume_control_pulse_new(options, pgloop, accounts_service_access);
- warning = volume_warning_pulse_new(options, pgloop);
+ warning = VOLUME_WARNING (volume_warning_pulse_new (options, pgloop));
- service = indicator_sound_service_new (playerlist, volume, accounts, options, warning, accounts_service_access);
+ service = indicator_sound_service_new (playerlist, VOLUME_CONTROL (volume), accounts, options, warning, accounts_service_access);
g_clear_object(&playerlist);
g_clear_object(&options);