gnome-control-center/panels/display
Matthijs Velsink 08e32e9573 display: Fix crash from closing lid
When closing the lid on a laptop, the number of active monitors drops to
zero. However, `monitor_labeler_show()` always assumes at least one
monitor is active, as it unconditionally closes the `GVariantBuilder`.

This causes a crash when there is no monitor added to the
`GVariantBuilder`, however, as no value was added to it.

Instead, only close the `GVariantBuilder` when we're actually going to
use it and know a value was added.

Commit ca9228bb fixed a similar crash for when there are no outputs at
all. But in this case, there is still an output, it is just not active,
only with the active UI number as 0.

Fixes #3058
2024-05-21 22:57:48 +02:00
..
icons Add individual app icons 2022-01-31 14:08:22 +00:00
cc-display-arrangement.c display: Connect signal handlers in swapped form 2023-06-07 09:12:54 +12:00
cc-display-arrangement.h display: Remove the monitor argument for cc_display_config_snap_output 2023-03-23 15:52:15 +00:00
cc-display-config-dbus.c display: Show the VRR range when possible 2024-03-02 20:14:38 +02:00
cc-display-config-dbus.h display: Replace ifdefs with #pragma once 2018-05-29 21:53:28 +00:00
cc-display-config-manager-dbus.c display: Add 'NightLightSupported' property support 2022-05-17 12:31:07 +02:00
cc-display-config-manager-dbus.h display: Replace ifdefs with #pragma once 2018-05-29 21:53:28 +00:00
cc-display-config-manager.c display: Add 'NightLightSupported' property support 2022-05-17 12:31:07 +02:00
cc-display-config-manager.h display: Add 'NightLightSupported' property support 2022-05-17 12:31:07 +02:00
cc-display-config.c display: Show the VRR range when possible 2024-03-02 20:14:38 +02:00
cc-display-config.h display: Show the VRR range when possible 2024-03-02 20:14:38 +02:00
cc-display-panel.c display: Fix crash from closing lid 2024-05-21 22:57:48 +02:00
cc-display-panel.h display: Replace ifdefs with #pragma once 2018-05-29 21:53:28 +00:00
cc-display-panel.ui cc-panel: Require explicit "subpage" widget child type for subpages 2024-05-17 09:18:00 +00:00
cc-display-settings.c display: Show the VRR range when possible 2024-03-02 20:14:38 +02:00
cc-display-settings.h Port to AdwNavigationSplitView 2023-08-25 08:00:43 +00:00
cc-display-settings.ui display: Add support for Variable Refresh Rate modes 2024-03-02 18:10:02 +00:00
cc-night-light-page.c night-light-page: Add a missing period 2024-04-25 21:38:33 -03:00
cc-night-light-page.h display: Port to GTK4 2021-12-14 22:34:21 -03:00
cc-night-light-page.ui display, night-light: Remove "infobar_unsupported" leftover 2024-04-29 08:55:13 +00:00
display-arrangement.css display: Use tabular numbers for monitor-label; de-duplicate css 2023-11-02 10:05:21 +00:00
display.gresource.xml display: Make night light dialog a GtkBin 2019-06-16 01:01:36 +00:00
gnome-display-panel.desktop.in display: Update desktop file to include "Night Light" 2022-11-30 09:51:25 +00:00
meson.build all: meson: do not specify resources from gresource files as dependencies 2023-05-24 08:34:14 +00:00
night-light.css display: Port to GTK4 2021-12-14 22:34:21 -03:00
TODO display: convert display capplet to a settings panel 2010-06-07 17:05:02 +01:00