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 /libs/gtkmm2ext | |
parent | ff80d660889b33c117ee7af24c28c1bc085778b2 (diff) |
associate label more closely with VST path button. the plugin tab needs a complete layout rethink, someday
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/utils.h | 1 | ||||
-rw-r--r-- | libs/gtkmm2ext/utils.cc | 8 |
2 files changed, 9 insertions, 0 deletions
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) { |