diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-01 14:28:05 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-01 14:33:47 -0600 |
commit | b258ad792e535a7587f2d055ec519ceb3f861f4d (patch) | |
tree | 74e23cf2bb4849ba0229663de8ba0ca207d1de98 /libs/gtkmm2ext | |
parent | 51795d2e117cd05d6951b70dcda57faa757d56b4 (diff) |
force provision of "menu-name" for all WindowProxy objects, and thus Tabbables
Actions for hide/show/attach/detach tabbables use hard-coded names which are not
translated. Using Tabbable/WindowProxy::name() to lookup the action will fail,
since the name can be translated. This changes just removes the option to not
provide a menu-name when creating these objects, and uses the name menu-name
when looking up an action by name
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/window_proxy.h | 1 | ||||
-rw-r--r-- | libs/gtkmm2ext/window_proxy.cc | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/window_proxy.h b/libs/gtkmm2ext/gtkmm2ext/window_proxy.h index 13d3d1530f..04dd248353 100644 --- a/libs/gtkmm2ext/gtkmm2ext/window_proxy.h +++ b/libs/gtkmm2ext/gtkmm2ext/window_proxy.h @@ -40,7 +40,6 @@ class VisibilityTracker; class LIBGTKMM2EXT_API WindowProxy : public PBD::StatefulDestructible, public virtual sigc::trackable { public: - WindowProxy (const std::string& name); WindowProxy (const std::string& name, const std::string& menu_name); WindowProxy (const std::string& name, const std::string& menu_name, const XMLNode&); virtual ~WindowProxy(); diff --git a/libs/gtkmm2ext/window_proxy.cc b/libs/gtkmm2ext/window_proxy.cc index 1635f033e1..6e3191abd8 100644 --- a/libs/gtkmm2ext/window_proxy.cc +++ b/libs/gtkmm2ext/window_proxy.cc @@ -31,19 +31,6 @@ using namespace Gtk; using namespace Gtkmm2ext; using namespace PBD; -WindowProxy::WindowProxy (const std::string& name) - : _name (name) - , _window (0) - , _visible (false) - , _x_off (-1) - , _y_off (-1) - , _width (-1) - , _height (-1) - , vistracker (0) - , _state_mask (StateMask (Position|Size)) -{ -} - WindowProxy::WindowProxy (const std::string& name, const std::string& menu_name) : _name (name) , _menu_name (menu_name) |