Fix C89 compatibility issue
Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
This commit is contained in:
parent
bb1b9d0cb6
commit
a0b1b1b8f3
24
gnome-font-viewer-c89.patch
Normal file
24
gnome-font-viewer-c89.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Match type of action_toggle_search_cb to its use
|
||||||
|
|
||||||
|
This avoids an incompatible-pointer-types error and a build failure
|
||||||
|
with GCC 14.
|
||||||
|
|
||||||
|
Submitted upstream: <https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/merge_requests/60>
|
||||||
|
|
||||||
|
diff --git a/src/font-view-window.c b/src/font-view-window.c
|
||||||
|
index 639ac33309b87135..24461f7f195c84f9 100644
|
||||||
|
--- a/src/font-view-window.c
|
||||||
|
+++ b/src/font-view-window.c
|
||||||
|
@@ -758,8 +758,11 @@ font_view_window_show_overview (FontViewWindow *self)
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
-action_toggle_search_cb (FontViewWindow *self)
|
||||||
|
+action_toggle_search_cb (GtkWidget *widget,
|
||||||
|
+ const char *action_name,
|
||||||
|
+ GVariant *parameter)
|
||||||
|
{
|
||||||
|
+ FontViewWindow *self = FONT_VIEW_WINDOW (widget);
|
||||||
|
|
||||||
|
gtk_toggle_button_set_active (self->search_button,
|
||||||
|
!gtk_toggle_button_get_active (self->search_button));
|
@ -3,12 +3,13 @@
|
|||||||
|
|
||||||
Name: gnome-font-viewer
|
Name: gnome-font-viewer
|
||||||
Version: 45.0
|
Version: 45.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Utility for previewing fonts for GNOME
|
Summary: Utility for previewing fonts for GNOME
|
||||||
|
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
URL: https://gitlab.gnome.org/GNOME/gnome-font-viewer
|
URL: https://gitlab.gnome.org/GNOME/gnome-font-viewer
|
||||||
Source0: https://download.gnome.org/sources/gnome-font-viewer/%{major_version}/%{name}-%{tarball_version}.tar.xz
|
Source0: https://download.gnome.org/sources/gnome-font-viewer/%{major_version}/%{name}-%{tarball_version}.tar.xz
|
||||||
|
Patch0: gnome-font-viewer-c89.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
@ -57,6 +58,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.gnome
|
|||||||
%{_metainfodir}/org.gnome.font-viewer.appdata.xml
|
%{_metainfodir}/org.gnome.font-viewer.appdata.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jan 21 2024 Florian Weimer <fweimer@redhat.com> - 45.0-3
|
||||||
|
- Fix C89 compatibility issue
|
||||||
|
|
||||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 45.0-2
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 45.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user