Update to 45.alpha

This commit is contained in:
Milan Crha 2023-06-30 11:35:00 +02:00
parent 91d71073bb
commit 5e095d670f
3 changed files with 7 additions and 39 deletions

View File

@ -1,33 +0,0 @@
diff -up gnome-software-devel/src/gs-feature-tile.c.1 gnome-software-devel/src/gs-feature-tile.c
--- gnome-software-devel/src/gs-feature-tile.c.1 2023-01-02 17:08:54.157641969 +0100
+++ gnome-software-devel/src/gs-feature-tile.c 2023-01-02 17:09:36.881632780 +0100
@@ -397,9 +397,6 @@ gs_feature_tile_refresh (GsAppTile *self
if (key_colors != tile->key_colors_cache) {
g_autoptr(GArray) colors = NULL;
GdkRGBA fg_rgba;
-#if !GTK_CHECK_VERSION(4, 9, 2)
- gboolean fg_rgba_valid;
-#endif
GsHSBC fg_hsbc;
const GsHSBC *chosen_hsbc;
GsHSBC chosen_hsbc_modified;
@@ -424,8 +421,17 @@ gs_feature_tile_refresh (GsAppTile *self
gtk_widget_get_color (GTK_WIDGET (self), &fg_rgba);
#else
context = gtk_widget_get_style_context (GTK_WIDGET (self));
- 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;
+ }
#endif
gtk_rgb_to_hsv (fg_rgba.red, fg_rgba.green, fg_rgba.blue,

View File

@ -23,15 +23,13 @@
%global __provides_exclude_from ^%{_libdir}/%{name}/plugins-%{gs_plugin_version}/.*\\.so.*$
Name: gnome-software
Version: 44.2
Release: 2%{?dist}
Version: 45~alpha
Release: 1%{?dist}
Summary: A software center for GNOME
License: GPL-2.0-or-later
URL: https://wiki.gnome.org/Apps/Software
Source0: https://download.gnome.org/sources/gnome-software/44/%{name}-%{tarball_version}.tar.xz
Patch01: 0001-crash-with-broken-theme.patch
Source0: https://download.gnome.org/sources/gnome-software/45/%{name}-%{tarball_version}.tar.xz
BuildRequires: docbook-style-xsl
BuildRequires: desktop-file-utils
@ -249,6 +247,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%{_datadir}/gtk-doc/html/gnome-software/
%changelog
* Fri Jun 30 2023 Milan Crha <mcrha@redhat.com> - 45~alpha-1
- Update to 45.alpha
* Thu Jun 22 2023 Tomas Popela <tpopela@redhat.com> - 44.2-2
- Disable parental control (through malcontent) and rpm-ostree support in RHEL

View File

@ -1 +1 @@
SHA512 (gnome-software-44.2.tar.xz) = 0f053d1d92285239d7edd62a5dcc5c8ce9e991103e3987808ef82406e2dc665a13e0cd14b043d66dfd420459a6aa7c83e7db2fd6a16a8f3b41a6e93498820251
SHA512 (gnome-software-45.alpha.tar.xz) = 1a2c5e6eec249fdeb726b6cdd58c47ccbdefd6c9bc7278c6d30f1350cc62d3e1231e12b5b2cd9acee8deff269346171d427fd389194f04ca641825bd32ddaa2a