Marginal cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@12565 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -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__ */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user