summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-10-10 17:46:22 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-10-10 17:46:22 +0000
commitf95d814143060efc7a69164362a3311b3a3b54a4 (patch)
treec1a4dffddbc1a0888b9c423aebff899ac29fc06e /gtk2_ardour/utils.cc
parent6c56eb646b9c00f4c38c56717d0f5419f1b0d07b (diff)
fix audio clock field widths, change minsec display to include fractional seconds, add and use thorwil's new icons
git-svn-id: svn://localhost/ardour2/trunk@971 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r--gtk2_ardour/utils.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc
index 1e283a6973..76b237713a 100644
--- a/gtk2_ardour/utils.cc
+++ b/gtk2_ardour/utils.cc
@@ -468,6 +468,22 @@ get_xpm (std::string name)
return (xpm_map[name]);
}
+Glib::RefPtr<Gdk::Pixbuf>
+get_icon (const char* cname)
+{
+ string name = cname;
+ name += X_(".png");
+
+ string path = ARDOUR::find_data_file (name, "icons");
+
+ if (path.empty()) {
+ fatal << string_compose (_("cannot find icon image for %1"), name) << endmsg;
+ /*NOTREACHED*/
+ }
+
+ return Gdk::Pixbuf::create_from_file (path);
+}
+
string
longest (vector<string>& strings)
{