summaryrefslogtreecommitdiff
path: root/libs/widgets
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-05-01 14:28:05 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-05-01 14:33:47 -0600
commitb258ad792e535a7587f2d055ec519ceb3f861f4d (patch)
tree74e23cf2bb4849ba0229663de8ba0ca207d1de98 /libs/widgets
parent51795d2e117cd05d6951b70dcda57faa757d56b4 (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/widgets')
-rw-r--r--libs/widgets/tabbable.cc4
-rw-r--r--libs/widgets/widgets/tabbable.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/widgets/tabbable.cc b/libs/widgets/tabbable.cc
index 537751d315..fee22bd435 100644
--- a/libs/widgets/tabbable.cc
+++ b/libs/widgets/tabbable.cc
@@ -37,8 +37,8 @@ using namespace Gtk;
using namespace Gtkmm2ext;
using namespace ArdourWidgets;
-Tabbable::Tabbable (Widget& w, const string& name, bool tabbed_by_default)
- : WindowProxy (name)
+Tabbable::Tabbable (Widget& w, const string& visible_name, string const & nontranslatable_name, bool tabbed_by_default)
+ : WindowProxy (visible_name, nontranslatable_name)
, _contents (w)
, _parent_notebook (0)
, tab_requested_by_state (tabbed_by_default)
diff --git a/libs/widgets/widgets/tabbable.h b/libs/widgets/widgets/tabbable.h
index f194485517..af2ced6e27 100644
--- a/libs/widgets/widgets/tabbable.h
+++ b/libs/widgets/widgets/tabbable.h
@@ -44,7 +44,7 @@ namespace ArdourWidgets {
class LIBWIDGETS_API Tabbable : public Gtkmm2ext::WindowProxy
{
public:
- Tabbable (Gtk::Widget&, const std::string&, bool tabbed_by_default = true);
+ Tabbable (Gtk::Widget&, const std::string& user_visible_name, std::string const & untranslated_name, bool tabbed_by_default = true);
~Tabbable ();
void add_to_notebook (Gtk::Notebook& notebook, const std::string& tab_title);