- if (nomparent.length()) {
-
- /* limit the plug name string */
-
- string pname = fit_to_pixels (nomparent, 60, *name_font, ignore_width, true);
- if (pname != nomparent) {
- shortened = true;
- }
-
- plugname = new Label (pname);
- plugname->set_name (X_("TrackPlugName"));
- plugname->show();
- name_label.set_name (X_("TrackParameterName"));
- controls_table.remove (name_hbox);
- controls_table.attach (*plugname, 1, 5, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
- plugname_packed = true;
- controls_table.attach (name_hbox, 1, 5, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
- } else {
- plugname = 0;
- plugname_packed = false;
- }
-
- if (shortened) {
- string tipname = nomparent;
- if (!tipname.empty()) {
- tipname += ": ";
- }
- tipname += _name;
- ARDOUR_UI::instance()->set_tip(controls_ebox, tipname);