public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-physics/geant-python/files: geant-python-4.9.5-vis-fix.patch
@ 2012-05-21  4:49 Benda XU (heroxbd)
  0 siblings, 0 replies; only message in thread
From: Benda XU (heroxbd) @ 2012-05-21  4:49 UTC (permalink / raw
  To: gentoo-commits

heroxbd     12/05/21 04:49:12

  Added:                geant-python-4.9.5-vis-fix.patch
  Log:
  fix VisManager c++ signature mismatch, upstream http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1318
  
  (Portage version: 2.1.10.57/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sci-physics/geant-python/files/geant-python-4.9.5-vis-fix.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/geant-python/files/geant-python-4.9.5-vis-fix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/geant-python/files/geant-python-4.9.5-vis-fix.patch?rev=1.1&content-type=text/plain

Index: geant-python-4.9.5-vis-fix.patch
===================================================================
fix the C++ signature, upstream http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1318
diff --git a/source/visualization/pyG4VisManager.cc b/source/visualization/pyG4VisManager.cc
index 33bb0d4..bbd9e0a 100644
--- a/source/visualization/pyG4VisManager.cc
+++ b/source/visualization/pyG4VisManager.cc
@@ -39,7 +39,7 @@ using namespace boost::python;
 // ====================================================================
 // wrappers
 // ====================================================================
-class PyG4VisManager : public G4VisManager {
+struct PyG4VisManager : G4VisManager, wrapper<G4VisManager> {
 public:
   PyG4VisManager() { SetVerboseLevel(quiet); }
   ~PyG4VisManager() { }
@@ -62,7 +62,7 @@ void (PyG4VisManager::*f1_SetVerboseLevel)(G4int)
   = &PyG4VisManager::SetVerboseLevel;
 void (PyG4VisManager::*f2_SetVerboseLevel)(const G4String&)
   = &PyG4VisManager::SetVerboseLevel;
-  void (PyG4VisManager::*f3_SetVerboseLevel)(G4VisManager::Verbosity)
+void (PyG4VisManager::*f3_SetVerboseLevel)(G4VisManager::Verbosity)
   = &PyG4VisManager::SetVerboseLevel;
 
 }
@@ -87,6 +87,7 @@ void export_G4VisManager()
     .def("SetVerboseLevel", f2_SetVerboseLevel)
     .def("SetVerboseLevel", f3_SetVerboseLevel)
     .def("GetVerbosity", &PyG4VisManager::GetVerbosity)
+    .staticmethod("GetVerbosity")
     .def("Initialize", &PyG4VisManager::Initialize)
     .def("RegisterGraphicsSystem", &PyG4VisManager::RegisterGraphicsSystem)
     ;






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-21  4:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21  4:49 [gentoo-commits] gentoo-x86 commit in sci-physics/geant-python/files: geant-python-4.9.5-vis-fix.patch Benda XU (heroxbd)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox