Mercurial > octave
diff libinterp/corefcn/graphics-toolkit.cc @ 27734:a9780be9ecbc
move graphics_toolkit class inside octave namespace
* graphics-toolkit.h, graphics-toolkit.cc: Move base_graphics_toolkit
and graphics_toolkit classes inside octave namespace. Change all
uses outside of octave namespace as needed. Provide deprecated
typedefs for old names in global namespace.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Nov 2019 18:41:08 -0500 |
parents | 50216d7a2f6b |
children | b442ec6dda5c |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics-toolkit.cc Thu Nov 21 17:34:04 2019 -0500 +++ b/libinterp/corefcn/graphics-toolkit.cc Thu Nov 21 18:41:08 2019 -0500 @@ -28,24 +28,27 @@ #include "gtk-manager.h" #include "interpreter-private.h" -void -base_graphics_toolkit::update (const graphics_handle& h, int id) +namespace octave { - gh_manager& gh_mgr - = octave::__get_gh_manager__ ("base_graphics_toolkit::update"); + void + base_graphics_toolkit::update (const graphics_handle& h, int id) + { + gh_manager& gh_mgr + = octave::__get_gh_manager__ ("base_graphics_toolkit::update"); - graphics_object go = gh_mgr.get_object (h); - - update (go, id); -} + graphics_object go = gh_mgr.get_object (h); -bool -base_graphics_toolkit::initialize (const graphics_handle& h) -{ - gh_manager& gh_mgr - = octave::__get_gh_manager__ ("base_graphics_toolkit::initialize"); + update (go, id); + } - graphics_object go = gh_mgr.get_object (h); + bool + base_graphics_toolkit::initialize (const graphics_handle& h) + { + gh_manager& gh_mgr + = octave::__get_gh_manager__ ("base_graphics_toolkit::initialize"); - return initialize (go); + graphics_object go = gh_mgr.get_object (h); + + return initialize (go); + } }