Marginal cleanup.

git-svn-id: svn://localhost/ardour2/branches/3.0@12565 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2012-06-05 01:03:36 +00:00
parent 9b2e242cb5
commit eaf58fdd50
8 changed files with 55 additions and 82 deletions

View File

@@ -106,6 +106,8 @@ namespace Gtkmm2ext {
void rounded_top_half_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
void rounded_bottom_half_rectangle (cairo_t*, double x, double y, double w, double h, double r=10);
Gtk::Label* left_aligned_label (std::string const &);
};
#endif /* __gtkmm2ext_utils_h__ */

View File

@@ -624,3 +624,10 @@ Gtkmm2ext::fit_to_pixels (cairo_t* cr, std::string name, double avail)
return std::make_pair (name, width);
}
Gtk::Label *
Gtkmm2ext::left_aligned_label (string const & t)
{
Gtk::Label* l = new Gtk::Label (t);
l->set_alignment (0, 0.5);
return l;
}