diff options
author | Pacho Ramos <pacho@gentoo.org> | 2015-10-17 18:13:08 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2015-10-17 18:13:08 +0200 |
commit | dad40a664c6842b93e52259c49d9d1e5435b6ffb (patch) | |
tree | 888885593c3aa01e685f0ccee1b8fa4065710b68 /app-text/xchm/files | |
parent | app-misc/golly: This version also supports wxGTK:3.0 finally (#562480) (diff) | |
download | gentoo-dad40a664c6842b93e52259c49d9d1e5435b6ffb.tar.gz gentoo-dad40a664c6842b93e52259c49d9d1e5435b6ffb.tar.bz2 gentoo-dad40a664c6842b93e52259c49d9d1e5435b6ffb.zip |
app-text/xchm: Apply Debian patch to support wxGTK:3.0 (#562480)
Package-Manager: portage-2.2.23
Diffstat (limited to 'app-text/xchm/files')
-rw-r--r-- | app-text/xchm/files/xchm-1.23-wx3.0-compat.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app-text/xchm/files/xchm-1.23-wx3.0-compat.patch b/app-text/xchm/files/xchm-1.23-wx3.0-compat.patch new file mode 100644 index 000000000000..a9545cf5b568 --- /dev/null +++ b/app-text/xchm/files/xchm-1.23-wx3.0-compat.patch @@ -0,0 +1,32 @@ +Description: Fix code to compile with wxwidgets 3.0 + Drops support for wx < 2.7, which is just not relevant now. And in fact + configure.ac checks for at least 2.8.0. +Author: Olly Betts <olly@survex.com> +Last-Update: 2014-03-07 + +--- xchm-1.23.orig/src/chmframe.cpp ++++ xchm-1.23/src/chmframe.cpp +@@ -265,11 +265,7 @@ void CHMFrame::OnChangeFonts(wxCommandEv + enu.EnumerateFacenames(); + _normalFonts = new wxArrayString; + +-#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7 + *_normalFonts = enu.GetFacenames(); +-#else +- *_normalFonts = *enu.GetFacenames(); +-#endif + _normalFonts->Sort(); + } + +@@ -278,11 +274,7 @@ void CHMFrame::OnChangeFonts(wxCommandEv + enu.EnumerateFacenames(wxFONTENCODING_SYSTEM, TRUE); + _fixedFonts = new wxArrayString; + +-#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7 + *_fixedFonts = enu.GetFacenames(); +-#else +- *_fixedFonts = *enu.GetFacenames(); +-#endif + _fixedFonts->Sort(); + } + |