Fix error preventing the Region & Language panel from loading

This commit is contained in:
Felipe Borges 2021-02-23 16:23:16 +01:00
parent beabe92180
commit 771bb55187
2 changed files with 82 additions and 1 deletions

View File

@ -0,0 +1,76 @@
From 716701952230f4e3e54a4c669861a12ba19e93ba Mon Sep 17 00:00:00 2001
From: Georges Basile Stavracas Neto <georges.stavracas@gmail.com>
Date: Tue, 23 Feb 2021 10:24:49 -0300
Subject: [PATCH] common: Add missing <child> tag to CcLanguageChooser
The UI file is not wrapping the <object> tag with <child>, which
fails to parse and blanks the dialog.
Add the missing <child> tag around the "More" row object.
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1270
---
panels/common/cc-language-chooser.ui | 47 +++++++++++++++-------------
1 file changed, 26 insertions(+), 21 deletions(-)
diff --git a/panels/common/cc-language-chooser.ui b/panels/common/cc-language-chooser.ui
index 5449fb3dd..885eb437a 100644
--- a/panels/common/cc-language-chooser.ui
+++ b/panels/common/cc-language-chooser.ui
@@ -70,27 +70,32 @@
<property name="sensitive">False</property>
</object>
</child>
- <object class="GtkListBoxRow" id="more_row">
- <child>
- <object class="GtkBox">
- <property name="visible">True</property>
- <property name="spacing">10</property>
- <property name="tooltip_markup" translatable="yes">More…</property>
- <child>
- <object class="GtkImage">
- <property name="visible">False</property>
- <property name="icon-name">view-more-symbolic</property>
- <property name="icon-size">1</property>
- <property name="margin-top">10</property>
- <property name="margin-bottom">10</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- </child>
- </object>
- </child>
- </object>
+
+ <!-- "More" row -->
+ <child>
+ <object class="GtkListBoxRow" id="more_row">
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="spacing">10</property>
+ <property name="tooltip_markup" translatable="yes">More…</property>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">False</property>
+ <property name="icon-name">view-more-symbolic</property>
+ <property name="icon-size">1</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+
</object>
</child>
</object>
--
2.28.0

View File

@ -13,7 +13,7 @@
Name: gnome-control-center
Version: 40~beta
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Utilities to configure the GNOME desktop
License: GPLv2+ and CC-BY-SA
@ -23,6 +23,8 @@ Source0: https://download.gnome.org/sources/gnome-control-center/40/gnome
# https://bugzilla.gnome.org/show_bug.cgi?id=695691
Patch0: distro-logo.patch
Patch1: fix-language-chooser.patch
BuildRequires: chrpath
BuildRequires: cups-devel
BuildRequires: desktop-file-utils
@ -196,6 +198,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gnome-control-center
%dir %{_datadir}/gnome/wm-properties
%changelog
* Tue Feb 23 2021 Felipe Borges <feborges@redhat.com> - 40~beta-2
- Fix error preventing the Region & Language panel from loading
* Sun Feb 21 2021 Kalev Lember <klember@redhat.com> - 40~beta-1
- Update to 40.beta