#1 Rebuild with wxWidgets 3.0 (GTK+ 2 build)
Merged 5 years ago by bpostle. Opened 5 years ago by swt2c.
rpms/ swt2c/panoglview wxwidgets3.0  into  master

file modified
+7 -2
@@ -1,16 +1,17 @@ 

  Summary:       Immersive viewer for spherical panoramas

  Name:          panoglview

  Version:       0.2.2

- Release:       24%{?dist}

+ Release:       25%{?dist}

  License:       GPLv2+

  URL:           http://hugin.sourceforge.net/

  Group:         Applications/Multimedia

  Source0:       http://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.gz

  Source1:       %{name}.desktop

  Source2:       %{name}.png

+ Patch0:        wxwidgets3.0.patch

  BuildRequires:  gcc-c++

  BuildRequires: libtiff-devel libjpeg-devel libpng-devel

- BuildRequires: wxGTK-devel zlib-devel desktop-file-utils

+ BuildRequires: compat-wxGTK3-gtk2-devel zlib-devel desktop-file-utils

  

  %description

  Use panoglview to explore equirectangular panoramic images.  Equirectangular
@@ -18,6 +19,7 @@ 

  

  %prep

  %setup -q

+ %patch0 -p1

  chmod -x src/*.h src/*.cpp

  

  %build
@@ -44,6 +46,9 @@ 

  %{_datadir}/pixmaps/%{name}.png

  

  %changelog

+ * Tue Nov 06 2018 Scott Talbert <swt@techie.net> - 0.2.2-25

+ - Rebuild with wxWidgets 3.0 (GTK+ 2 build)

+ 

  * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-24

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

  

file added
+30
@@ -0,0 +1,30 @@ 

+ diff -up panoglview-0.2.2/src/panoframe.cpp.wx3 panoglview-0.2.2/src/panoframe.cpp

+ --- panoglview-0.2.2/src/panoframe.cpp.wx3	2008-07-23 17:09:11.000000000 -0400

+ +++ panoglview-0.2.2/src/panoframe.cpp	2018-11-05 20:57:16.561033009 -0500

+ @@ -136,7 +136,7 @@ PCX files (*.pcx)|*.pcx|\

+  PNM files (*.pnm)|*.pnm|\

+  TIFF files (*.tif)|*.tif|\

+  XPM files (*.xpm)|*.xpm|\

+ -All files (*.*)|*.*"),wxOPEN|wxFILE_MUST_EXIST);

+ +All files (*.*)|*.*"),wxFD_OPEN|wxFD_FILE_MUST_EXIST);

+    if (imagename !=wxT(""))

+      openImage(imagename);

+  }

+ @@ -153,7 +153,7 @@ void panoFrame::OnFullScreen(wxCommandEv

+  

+  void panoFrame::OnOpenProject(wxCommandEvent &event)

+  {

+ -  wxString filename = wxFileSelector(_("Open Project"),wxEmptyString,wxEmptyString,wxT("paf"),_("Panorama files (*.paf)|*.paf|All files (*.*)|*.*"),wxOPEN|wxFILE_MUST_EXIST);

+ +  wxString filename = wxFileSelector(_("Open Project"),wxEmptyString,wxEmptyString,wxT("paf"),_("Panorama files (*.paf)|*.paf|All files (*.*)|*.*"),wxFD_OPEN|wxFD_FILE_MUST_EXIST);

+    if (filename !=wxT("")){

+      openProject(filename);

+    }

+ @@ -292,7 +292,7 @@ void panoFrame::openArgumentFile(const w

+  

+  void panoFrame::OnSaveProject(wxCommandEvent &event)

+  {

+ -  wxString filename = wxFileSelector(_("Save Project"),wxEmptyString,wxEmptyString,wxT("paf"),_("Panorama files (*.paf)|*.paf|All files (*.*)|*.*"),wxOVERWRITE_PROMPT|wxSAVE);

+ +  wxString filename = wxFileSelector(_("Save Project"),wxEmptyString,wxEmptyString,wxT("paf"),_("Panorama files (*.paf)|*.paf|All files (*.*)|*.*"),wxFD_OVERWRITE_PROMPT|wxFD_SAVE);

+    if (filename != wxT("")){

+      if (wxFileExists(filename))

+        wxRemoveFile(filename);

no initial comment

Pull-Request has been merged by bpostle

5 years ago

Thanks, done, and also pushed upstream