Skip to content

GTK 4: Fix missing player controls - #331

Merged
danirabbit merged 1 commit into
danirabbit/gtk4from
ryonakano/gtk4-fix-missing-player
Aug 14, 2026
Merged

GTK 4: Fix missing player controls#331
danirabbit merged 1 commit into
danirabbit/gtk4from
ryonakano/gtk4-fix-missing-player

Conversation

@ryonakano

Copy link
Copy Markdown
Member

Fix TODO in #295

Screenshot_elementary-9-daily_2026-08-14_20:54:02

This line has been here quite for a long time—since 27a982a (src/Widgets/PlayerList.vala was named src/Widgets/MprisWidget.vala at that time), where Bluetooth device support seems to be added. However, this has never been worked as expected in GTK 3, since show_all () is called against default_widget (which shows the player controls in the above screenshot) here:

https://github.com/elementary/wingpanel-indicator-sound/blob/16fb7bf5518f117bde433db92a0b8cb01fadb32f/src/Widgets/PlayerList.vala#L94

Now, Gtk.Widget.show_all () has gone in GTK 4, and thus this line now works as expected, i.e. make the entire PlayerList widget invisible if org.bluez DBus service is not active for a reason like your device does not have a Bluetooth dongle.

Aug 14 21:13:38 elementary-9-daily io.elementary.wingpanel[13269]: Manager.vala:60: Error calling StartServiceByName for org.bluez: Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)

The PlayerList widget shows player controls not only for Bluetooth devices, which ObjectManager handles, but also for MPRIS players. So, I removed this line since its' strange to make the entire widget invisible if no Bluetooth device is available.

@ryonakano
ryonakano requested a review from danirabbit August 14, 2026 12:24
@danirabbit
danirabbit merged commit 47db698 into danirabbit/gtk4 Aug 14, 2026
2 of 4 checks passed
@danirabbit
danirabbit deleted the ryonakano/gtk4-fix-missing-player branch August 14, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants