summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.cc
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2008-07-15 07:45:09 +0000
committerDoug McLain <doug@nostar.net>2008-07-15 07:45:09 +0000
commit9ea93a27aca2cfa80a8d70fed4502ba55a1faa04 (patch)
tree43a0299a74f5bc37435182cfee9bd56700a0dd50 /gtk2_ardour/utils.cc
parent56efbf54b4ec2a0a9edfad5697d5135c5657b6c6 (diff)
handle FileError exception in create_from_file, and more debug...
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3611 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r--gtk2_ardour/utils.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc
index 54ca808e6b..1197e99b41 100644
--- a/gtk2_ardour/utils.cc
+++ b/gtk2_ardour/utils.cc
@@ -560,7 +560,12 @@ get_xpm (std::string name)
{
cerr << "xpm path = " << ARDOUR::find_data_file(name, "pixmaps") << endl;//DEBUG
if (!xpm_map[name]) {
- xpm_map[name] = Gdk::Pixbuf::create_from_file (ARDOUR::find_data_file(name, "pixmaps"));
+ try {
+ xpm_map[name] = Gdk::Pixbuf::create_from_file (ARDOUR::find_data_file(name, "pixmaps"));
+ }
+ catch(const Glib::Error& e) {
+ cerr << e.what() << endl;
+ }
}
return (xpm_map[name]);