gnome-control-center/panels
Jonas Dreßler 4afd08e234 sound: Don't call gvc_mixer_control_open() twice
Unfortunately I sneaked in a move of the gvc_mixer_control_open() call from
earlier in the function to the end of the function with commit 2152899354.

That change didn't actually move the call though, but introduced a second
call instead, leading to a critical error on opening of the sound panel.

Fix it by removing the first call to gvc_mixer_control_open() and keeping
the second one around. We want to keep the second one instead of the earlier
one because the signal handlers should be connected before we initialize gvc
and it connects to pulse, emitting all the input/output-added signals etc.

The reason why this wasn't broken before was likely because the connection
to pulse happens async, and therefore the initial emission of the signals
would effectively still have happened after we connected our handlers.

Fwiw, calling gvc_mixer_control_open() after
cc_volume_slider_set_mixer_control(), cc_subwoofer_slider_set_mixer_control()
and cc_device_combo_box_set_mixer_control() is not a problem, as those
functions all call into gvc to get static values (and as explained above,
at this point gvc wouldn't have established connection to pulse anyway).

Reported-by: Matthijs Velsink <mvelsink@gnome.org>

Fixes: 2152899354 ("sound: Listen to signals from GvcMixerControl only in sound panel")
2024-03-12 22:39:14 +00:00
..
applications apps: UI tweaks to the "Files & Links" row 2024-03-12 22:08:47 +01:00
background background: Add a transition to the selected background check 2024-03-11 15:09:15 +00:00
bluetooth bluetooth: Remove periods from descriptions 2024-02-05 10:54:43 +00:00
color general: Rename "computer" strings to "device" 2024-03-11 15:19:55 +00:00
common common: Replace info-symbolic icon with info-outline-symbolic 2024-03-11 15:06:26 +00:00
display display: Show the VRR range when possible 2024-03-02 20:14:38 +02:00
keyboard keyboard-shortcut-row: Tweak the reset button 2024-03-12 12:51:45 +00:00
mouse Update and clean up symbolic icon assets 2024-02-10 16:17:35 +00:00
multitasking Update and clean up symbolic icon assets 2024-02-10 16:17:35 +00:00
network network-vpn: Add tooltip to the VPN options button 2024-03-12 12:40:45 +00:00
notifications notifications: Port app rows to CcListRow 2024-02-22 09:48:09 +00:00
online-accounts online-accounts-panel: Organize the accounts list 2024-03-11 13:41:55 +00:00
power power-profile-info-row: Set natural-wrap-mode to none 2024-03-12 22:17:17 +00:00
printers general: Add translator comments about the "Search" term 2024-02-29 13:48:20 +00:00
privacy privacy: Update subpage tags in the main page 2024-03-12 17:41:23 -03:00
search general: Add translator comments about the "Search" term 2024-02-29 13:48:20 +00:00
sharing sharing: Minor tweaks to dialogs size 2024-02-14 12:32:40 +00:00
sound sound: Don't call gvc_mixer_control_open() twice 2024-03-12 22:39:14 +00:00
system remote-login-page: Add missing mnemonic 2024-03-12 12:49:24 +00:00
universal-access ua-hearing-page: Add context to "Sound" string 2024-02-21 14:47:30 +01:00
wacom wacom: adjust graphic 2024-03-11 16:53:12 +00:00
wwan system, wwan: Depend on gcr4 2024-01-31 10:38:07 +01:00
meson.build system: Add "Users" panel 2024-01-08 13:59:26 +01:00
org.gnome.Settings-symbolic.Source.svg Update and clean up symbolic icon assets 2024-02-10 16:17:35 +00:00