From 0b0489c89980d88ba236c308fa807658b4595695 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sun, 7 Mar 2021 21:46:11 +0100 Subject: [PATCH] Fix modification of the networks Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1932674 Signed-off-by: Igor Raits --- ...on-editor-Fixup-creation-of-the-netm.patch | 28 +++++++++++++++++++ gnome-control-center.spec | 8 +++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 0001-network-connection-editor-Fixup-creation-of-the-netm.patch diff --git a/0001-network-connection-editor-Fixup-creation-of-the-netm.patch b/0001-network-connection-editor-Fixup-creation-of-the-netm.patch new file mode 100644 index 0000000..b03f334 --- /dev/null +++ b/0001-network-connection-editor-Fixup-creation-of-the-netm.patch @@ -0,0 +1,28 @@ +From 5902d04ac2f2bfec361ed8d0feb053f96734a076 Mon Sep 17 00:00:00 2001 +From: Igor Raits +Date: Sat, 6 Mar 2021 22:07:29 +0100 +Subject: [PATCH] network/connection-editor: Fixup creation of the netmask + widget + +Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1274 +Signed-off-by: Igor Raits +--- + panels/network/connection-editor/ce-page-ip4.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/panels/network/connection-editor/ce-page-ip4.c b/panels/network/connection-editor/ce-page-ip4.c +index c1500f99f..6de6ce607 100644 +--- a/panels/network/connection-editor/ce-page-ip4.c ++++ b/panels/network/connection-editor/ce-page-ip4.c +@@ -360,7 +360,7 @@ add_route_row (CEPageIP4 *self, + gtk_widget_set_hexpand (widget, TRUE); + gtk_container_add (GTK_CONTAINER (row_box), widget); + +- widget = gtk_entry_new (); ++ widget = GTK_WIDGET (ce_netmask_entry_new ()); + g_signal_connect_object (widget, "changed", G_CALLBACK (ce_page_changed), self, G_CONNECT_SWAPPED); + g_signal_connect_object (widget, "activate", G_CALLBACK (ensure_empty_routes_row), self, G_CONNECT_SWAPPED); + g_object_set_data (G_OBJECT (row), "netmask", widget); +-- +2.30.1 + diff --git a/gnome-control-center.spec b/gnome-control-center.spec index b8b3cf6..12e20a9 100644 --- a/gnome-control-center.spec +++ b/gnome-control-center.spec @@ -13,7 +13,7 @@ Name: gnome-control-center Version: 40~beta -Release: 3%{?dist} +Release: 4%{?dist} Summary: Utilities to configure the GNOME desktop License: GPLv2+ and CC-BY-SA @@ -24,6 +24,9 @@ Source0: https://download.gnome.org/sources/gnome-control-center/40/gnome Patch0: distro-logo.patch Patch1: fix-language-chooser.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1932674 +# https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/963 +Patch2: 0001-network-connection-editor-Fixup-creation-of-the-netm.patch BuildRequires: chrpath BuildRequires: cups-devel @@ -198,6 +201,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gnome-control-center %dir %{_datadir}/gnome/wm-properties %changelog +* Sun Mar 07 2021 Igor Raits - 40~beta-4 +- Fix modifications of the networks (Fixes: RHBZ#1932674) + * Wed Feb 24 2021 Felipe Borges - 40~beta-3 - Include missing patch from 40~beta-2