summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/iconthemewrapper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/iconthemewrapper.cpp b/src/iconthemewrapper.cpp
index 4a66f5c..1e84b31 100644
--- a/src/iconthemewrapper.cpp
+++ b/src/iconthemewrapper.cpp
@@ -1,6 +1,7 @@
#include <config.h>
#include <gtkmm/icontheme.h>
+#include <giomm/error.h>
#include "iconthemewrapper.h"
@@ -19,5 +20,10 @@ procman::IconThemeWrapper::load_icon(const Glib::ustring& icon_name,
g_error("Cannot load icon '%s' from theme: %s", icon_name.c_str(), error.what().c_str());
return Glib::RefPtr<Gdk::Pixbuf>();
}
+ catch (Gio::Error &error)
+ {
+ g_debug("Could not load icon '%s' : %s", icon_name.c_str(), error.what().c_str());
+ return Glib::RefPtr<Gdk::Pixbuf>();
+ }
}