Add missing icon in about dialog

- Add poedit-3.0.1-about-icon.patch
This commit is contained in:
Wolfgang Stöggl 2022-02-13 20:23:22 +01:00
parent 5c5d4a0d30
commit c556e8d4f3
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/src/edapp.cpp b/src/edapp.cpp
index 95a16eab8..991f869b1 100644
--- a/src/edapp.cpp
+++ b/src/edapp.cpp
@@ -1078,6 +1078,7 @@ void PoeditApp::OnAbout(wxCommandEvent&)
about.SetCopyright(L"Copyright \u00a9 1999-2021 Václav Slavík");
#ifdef __WXGTK__ // other ports would show non-native about dlg
about.SetWebSite("https://poedit.net");
+ about.SetIcon(wxArtProvider::GetIcon("net.poedit.Poedit", wxART_FRAME_ICON, wxSize(64, 64)));
#endif
wxAboutBox(about);

View File

@ -1,6 +1,6 @@
Name: poedit
Version: 3.0.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: GUI editor for GNU gettext .po files
Summary(de): Grafischer Editor für GNU Gettext-Dateien
@ -8,6 +8,9 @@ License: MIT
URL: https://poedit.net/
Source0: https://github.com/vslavik/%{name}/releases/download/v%{version}-oss/%{name}-%{version}.tar.gz
Source1: https://src.fedoraproject.org/rpms/%{name}/raw/rawhide/f/%{name}.1.de.po
# Add missing icon in about dialog
# https://github.com/vslavik/poedit/issues/704
Patch0: poedit-3.0.1-about-icon.patch
BuildRequires: make
BuildRequires: wxGTK3-devel >= 3.0.3
@ -95,6 +98,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/net.%{nam
%changelog
* Sun Feb 13 2022 Wolfgang Stöggl <c72578@yahoo.de> - 3.0.1-3
- Add poedit-3.0.1-about-icon.patch
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild