!19 update to version 44.5
From: @lwg99 Reviewed-by: @open-bot Signed-off-by: @open-bot
This commit is contained in:
commit
0374bb0cbb
@ -1,38 +0,0 @@
|
|||||||
Subject: [PATCH] gs-feature-tile: Do not abort when the theme is broken
|
|
||||||
|
|
||||||
Just print a warning when the theme doesn't provide 'theme_fg_color' and
|
|
||||||
fallback to black color.
|
|
||||||
|
|
||||||
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1228
|
|
||||||
|
|
||||||
diff -up gnome-software-42.rc/src/gs-feature-tile.c.1 gnome-software-42.rc/src/gs-feature-tile.c
|
|
||||||
--- gnome-software-42.rc/src/gs-feature-tile.c.1 2022-03-04 16:23:58.566735700 +0100
|
|
||||||
+++ gnome-software-42.rc/src/gs-feature-tile.c 2022-03-07 08:06:29.046595524 +0100
|
|
||||||
@@ -411,7 +411,6 @@ gs_feature_tile_refresh (GsAppTile *self
|
|
||||||
if (key_colors != tile->key_colors_cache) {
|
|
||||||
g_autoptr(GArray) colors = NULL;
|
|
||||||
GdkRGBA fg_rgba;
|
|
||||||
- gboolean fg_rgba_valid;
|
|
||||||
GsHSBC fg_hsbc;
|
|
||||||
const GsHSBC *chosen_hsbc;
|
|
||||||
GsHSBC chosen_hsbc_modified;
|
|
||||||
@@ -429,8 +428,17 @@ gs_feature_tile_refresh (GsAppTile *self
|
|
||||||
* @min_abs_contrast contrast with the foreground, so
|
|
||||||
* that the text is legible.
|
|
||||||
*/
|
|
||||||
- fg_rgba_valid = gtk_style_context_lookup_color (context, "theme_fg_color", &fg_rgba);
|
|
||||||
- g_assert (fg_rgba_valid);
|
|
||||||
+ if (!gtk_style_context_lookup_color (context, "theme_fg_color", &fg_rgba)) {
|
|
||||||
+ static gboolean i_know = FALSE;
|
|
||||||
+ if (!i_know) {
|
|
||||||
+ i_know = TRUE;
|
|
||||||
+ g_warning ("The theme doesn't provide 'theme_fg_color', fallbacking to black");
|
|
||||||
+ }
|
|
||||||
+ fg_rgba.red = 0.0;
|
|
||||||
+ fg_rgba.green = 0.0;
|
|
||||||
+ fg_rgba.blue = 0.0;
|
|
||||||
+ fg_rgba.alpha = 1.0;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
gtk_rgb_to_hsv (fg_rgba.red, fg_rgba.green, fg_rgba.blue,
|
|
||||||
&fg_hsbc.hue, &fg_hsbc.saturation, &fg_hsbc.brightness);
|
|
||||||
Binary file not shown.
BIN
gnome-software-44.5.tar.xz
Normal file
BIN
gnome-software-44.5.tar.xz
Normal file
Binary file not shown.
@ -2,25 +2,23 @@
|
|||||||
%global flatpak_version 1.5.1
|
%global flatpak_version 1.5.1
|
||||||
%global fwupd_version 1.3.3
|
%global fwupd_version 1.3.3
|
||||||
%global glib2_version 2.61.1
|
%global glib2_version 2.61.1
|
||||||
%global gtk4_version 4.4.0
|
%global gtk4_version 4.9.2
|
||||||
%global json_glib_version 1.2.0
|
%global json_glib_version 1.2.0
|
||||||
%global libadwaita_version 1.0.1
|
%global libadwaita_version 1.3
|
||||||
%global libsoup_version 2.52.0
|
|
||||||
%global libxmlb_version 0.1.7
|
%global libxmlb_version 0.1.7
|
||||||
%global packagekit_version 1.1.1
|
%global packagekit_version 1.1.1
|
||||||
|
|
||||||
%define gs_plugin_version 19
|
%define gs_plugin_version 20
|
||||||
|
|
||||||
%global __provides_exclude_from ^%{_libdir}/%{name}/plugins-%{gs_plugin_version}/.*\\.so.*$
|
%global __provides_exclude_from ^%{_libdir}/%{name}/plugins-%{gs_plugin_version}/.*\\.so.*$
|
||||||
|
|
||||||
Name: gnome-software
|
Name: gnome-software
|
||||||
Version: 43.2
|
Version: 44.5
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: GNOME software Store
|
Summary: GNOME software Store
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://wiki.gnome.org/Apps/Software
|
URL: https://wiki.gnome.org/Apps/Software
|
||||||
Source0: https://download.gnome.org/sources/gnome-software/43/%{name}-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/gnome-software/44/%{name}-%{version}.tar.xz
|
||||||
Patch01: 0001-crash-with-broken-theme.patch
|
|
||||||
|
|
||||||
BuildRequires: gettext libxslt docbook-style-xsl desktop-file-utils gtk-doc
|
BuildRequires: gettext libxslt docbook-style-xsl desktop-file-utils gtk-doc
|
||||||
BuildRequires: gnome-desktop3-devel gspell-devel polkit-devel ostree-devel rpm-ostree-devel
|
BuildRequires: gnome-desktop3-devel gspell-devel polkit-devel ostree-devel rpm-ostree-devel
|
||||||
@ -46,7 +44,6 @@ Requires: flatpak-libs >= %{flatpak_version}
|
|||||||
Requires: fwupd%{?_isa} >= %{fwupd_version}
|
Requires: fwupd%{?_isa} >= %{fwupd_version}
|
||||||
Requires: glib2%{?_isa} >= %{glib2_version}
|
Requires: glib2%{?_isa} >= %{glib2_version}
|
||||||
Requires: json-glib%{?_isa} >= %{json_glib_version}
|
Requires: json-glib%{?_isa} >= %{json_glib_version}
|
||||||
Requires: libsoup%{?_isa} >= %{libsoup_version}
|
|
||||||
Requires: libxmlb%{?_isa} >= %{libxmlb_version}
|
Requires: libxmlb%{?_isa} >= %{libxmlb_version}
|
||||||
Requires: PackageKit%{?_isa} >= %{packagekit_version}
|
Requires: PackageKit%{?_isa} >= %{packagekit_version}
|
||||||
Requires: gnome-desktop3 >= 3.18.0 gnome-menus gsettings-desktop-schemas
|
Requires: gnome-desktop3 >= 3.18.0 gnome-menus gsettings-desktop-schemas
|
||||||
@ -152,6 +149,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
|||||||
%{_mandir}/man1/gnome-software.1.*
|
%{_mandir}/man1/gnome-software.1.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 27 2023 lwg <liweiganga@uniontech.com> - 44.5-1
|
||||||
|
- update to version 44.5
|
||||||
|
|
||||||
* Thu Mar 2 2023 zhuang li <zhuang.li@turbolinux.com.cn> - 43.2-2
|
* Thu Mar 2 2023 zhuang li <zhuang.li@turbolinux.com.cn> - 43.2-2
|
||||||
- Modified profile comments 43.2-2
|
- Modified profile comments 43.2-2
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: gitlab.gnome
|
version_control: gitlab.gnome
|
||||||
src_repo: gnome-software
|
src_repo: gnome-software
|
||||||
tag_prefix: "^"
|
tag_prefix: "^"
|
||||||
seperator: "."
|
separator: "."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user