diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2015-09-17 16:07:40 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2015-09-17 16:07:40 -0500 |
commit | f3a1ac21cbe0793f830143ccbad77a0cf7ef16fe (patch) | |
tree | 21a4977be1192d386f00bc386d2df78e61483bf5 | |
parent | ff80d660889b33c117ee7af24c28c1bc085778b2 (diff) |
associate label more closely with VST path button. the plugin tab needs a complete layout rethink, someday
-rw-r--r-- | gtk2_ardour/rc_option_editor.cc | 4 | ||||
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/utils.h | 1 | ||||
-rw-r--r-- | libs/gtkmm2ext/utils.cc | 8 |
3 files changed, 11 insertions, 2 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index ed586497b2..a6e76bda2a 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -1569,14 +1569,14 @@ public: _("<b>When enabled</b> new VST plugins are searched, tested and added to the cache index on application start. When disabled new plugins will only be available after triggering a 'Scan' manually")); #ifdef LXVST_SUPPORT - t->attach (*manage (left_aligned_label (_("Linux VST Path:"))), 0, 1, n, n+1); + t->attach (*manage (right_aligned_label (_("Linux VST Path:"))), 0, 1, n, n+1); b = manage (new Button (_("Edit"))); b->signal_clicked().connect (sigc::mem_fun (*this, &PluginOptions::edit_lxvst_path_clicked)); t->attach (*b, 1, 2, n, n+1, FILL); ++n; #endif #ifdef WINDOWS_VST_SUPPORT - t->attach (*manage (left_aligned_label (_("Windows VST Path:"))), 0, 1, n, n+1); + t->attach (*manage (right_aligned_label (_("Windows VST Path:"))), 0, 1, n, n+1); b = manage (new Button (_("Edit"))); b->signal_clicked().connect (sigc::mem_fun (*this, &PluginOptions::edit_vst_path_clicked)); t->attach (*b, 1, 2, n, n+1, FILL); ++n; diff --git a/libs/gtkmm2ext/gtkmm2ext/utils.h b/libs/gtkmm2ext/gtkmm2ext/utils.h index 6ed5d77428..03b52927ee 100644 --- a/libs/gtkmm2ext/gtkmm2ext/utils.h +++ b/libs/gtkmm2ext/gtkmm2ext/utils.h @@ -153,6 +153,7 @@ namespace Gtkmm2ext { LIBGTKMM2EXT_API void rounded_left_half_rectangle (cairo_t* cr, double x, double y, double w, double h, double r=10); LIBGTKMM2EXT_API Gtk::Label* left_aligned_label (std::string const &); + LIBGTKMM2EXT_API Gtk::Label* right_aligned_label (std::string const &); LIBGTKMM2EXT_API void set_no_tooltip_whatsoever (Gtk::Widget &); LIBGTKMM2EXT_API void enable_tooltips (); diff --git a/libs/gtkmm2ext/utils.cc b/libs/gtkmm2ext/utils.cc index 0a80825880..6bf83d3316 100644 --- a/libs/gtkmm2ext/utils.cc +++ b/libs/gtkmm2ext/utils.cc @@ -818,6 +818,14 @@ Gtkmm2ext::left_aligned_label (string const & t) return l; } +Gtk::Label * +Gtkmm2ext::right_aligned_label (string const & t) +{ + Gtk::Label* l = new Gtk::Label (t); + l->set_alignment (1, 0.5); + return l; +} + static bool make_null_tooltip (int, int, bool, const Glib::RefPtr<Gtk::Tooltip>& t) { |