Auto sync2gitlab import of gnome-control-center-3.28.2-36.el8.src.rpm

This commit is contained in:
CentOS Sources 2022-08-19 18:15:22 +00:00
parent dcae3fa1ed
commit 8b3f641765
2 changed files with 44 additions and 4 deletions

View File

@ -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 <felipeborges@gnome.org>
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

View File

@ -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 <feborges@redhat.com> - 3.28.2-36
- Update airplane mode fix to synchronize with system changes
Resolves: #2079139
* Fri Jul 15 2022 Felipe Borges <feborges@redhat.com> - 3.28.2-35
- Fix issue with the airplane mode toggle visibility on Wifi panel
Resolves: #2079139