associate label more closely with VST path button. the plugin tab needs a complete...
authorBen Loftis <ben@harrisonconsoles.com>
Thu, 17 Sep 2015 21:07:40 +0000 (16:07 -0500)
committerBen Loftis <ben@harrisonconsoles.com>
Thu, 17 Sep 2015 21:07:40 +0000 (16:07 -0500)
gtk2_ardour/rc_option_editor.cc
libs/gtkmm2ext/gtkmm2ext/utils.h
libs/gtkmm2ext/utils.cc

index ed586497b28f4599ad503bd2e5707ba61f6fc00c..a6e76bda2a181448d61d2d1e78e07a2f63d3fb17 100644 (file)
@@ -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;
index 6ed5d774283e138accb16199c8971937fa1e89b3..03b52927ee7ba3272e44d509f1263b2d3bb56a26 100644 (file)
@@ -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 ();
index 0a808258804beaa05171ccd66207269b5a8f1434..6bf83d331636f1be5309db08c4f64f9eb51e0ebc 100644 (file)
@@ -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)
 {