From 1f5dee6424ae301050172ca94587f44611ae4990 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 19 2022 18:15:06 +0000 Subject: import gnome-control-center-3.28.2-36.el8 --- diff --git a/SOURCES/0001-wifi-Move-airplane-mode-widget-above-the-main-stack.patch b/SOURCES/0001-wifi-Move-airplane-mode-widget-above-the-main-stack.patch index efeff0d..673d629 100644 --- a/SOURCES/0001-wifi-Move-airplane-mode-widget-above-the-main-stack.patch +++ b/SOURCES/0001-wifi-Move-airplane-mode-widget-above-the-main-stack.patch @@ -1,4 +1,4 @@ -From fe3b6451fc5f119ef676475f92157afae1fd822c Mon Sep 17 00:00:00 2001 +From ecc4b3d0f021012a5f46bb7852bb85cc314468b9 Mon Sep 17 00:00:00 2001 From: Felipe Borges Date: Wed, 3 Aug 2022 10:49:05 +0200 Subject: [PATCH] network: Split airplane-mode widget off main Wi-Fi panel @@ -18,9 +18,45 @@ These changes reorganize the widget hierarchy as such that the airplane-mode widget is now above the main stack and will persist visible as the main stack changes. --- - panels/network/wifi.ui | 464 +++++++++++++++++++++-------------------- - 1 file changed, 238 insertions(+), 226 deletions(-) + panels/network/cc-wifi-panel.c | 17 ++ + panels/network/wifi.ui | 464 +++++++++++++++++---------------- + 2 files changed, 255 insertions(+), 226 deletions(-) +diff --git a/panels/network/cc-wifi-panel.c b/panels/network/cc-wifi-panel.c +index 2c1cd17b7..989506c6a 100644 +--- a/panels/network/cc-wifi-panel.c ++++ b/panels/network/cc-wifi-panel.c +@@ -411,6 +411,17 @@ wireless_enabled_cb (NMClient *client, + check_main_stack_page (self); + } + ++static void ++on_rfkill_proxy_properties_changed_cb (GDBusProxy *proxy, ++ GVariant *changed_properties, ++ GStrv invalidated_properties, ++ CcWifiPanel *self) ++{ ++ g_debug ("Rfkill properties changed"); ++ ++ sync_airplane_mode_switch (self); ++} ++ + static void + rfkill_proxy_acquired_cb (GObject *source_object, + GAsyncResult *res, +@@ -436,6 +447,12 @@ rfkill_proxy_acquired_cb (GObject *source_object, + + self->rfkill_proxy = proxy; + ++ g_signal_connect_object (proxy, ++ "g-properties-changed", ++ G_CALLBACK (on_rfkill_proxy_properties_changed_cb), ++ self, ++ 0); ++ + sync_airplane_mode_switch (self); + } + diff --git a/panels/network/wifi.ui b/panels/network/wifi.ui index a3eab3889..c0f8a06b1 100644 --- a/panels/network/wifi.ui diff --git a/SPECS/gnome-control-center.spec b/SPECS/gnome-control-center.spec index ba94549..9626ea6 100644 --- a/SPECS/gnome-control-center.spec +++ b/SPECS/gnome-control-center.spec @@ -11,7 +11,7 @@ Name: gnome-control-center Version: 3.28.2 -Release: 35%{?dist} +Release: 36%{?dist} Summary: Utilities to configure the GNOME desktop License: GPLv2+ and CC-BY-SA @@ -263,6 +263,10 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gnome-control-center %dir %{_datadir}/gnome/wm-properties %changelog +* Mon Aug 15 2022 Felipe Borges - 3.28.2-36 +- Update airplane mode fix to synchronize with system changes + Resolves: #2079139 + * Fri Jul 15 2022 Felipe Borges - 3.28.2-35 - Fix issue with the airplane mode toggle visibility on Wifi panel Resolves: #2079139