From: Ben Loftis Date: Thu, 17 Sep 2015 21:07:40 +0000 (-0500) Subject: associate label more closely with VST path button. the plugin tab needs a complete... X-Git-Tag: 4.3~307 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=f3a1ac21cbe0793f830143ccbad77a0cf7ef16fe associate label more closely with VST path button. the plugin tab needs a complete layout rethink, someday --- 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: _("When enabled 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& t) {