summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/dock-item.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-11-16 21:32:16 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-11-16 21:32:16 +0000
commitdc4161332ffa97e75b5d2deecf2a47eb62e38c8f (patch)
tree2ad76f2101e86efeaf07f4aea62c84c3e70e45da /src/ui/widget/dock-item.cpp
parentSome improvements to redraw (diff)
parentAdd label (diff)
downloadinkscape-dc4161332ffa97e75b5d2deecf2a47eb62e38c8f.tar.gz
inkscape-dc4161332ffa97e75b5d2deecf2a47eb62e38c8f.zip
Merge branch 'master' into powerpencilII
Diffstat (limited to 'src/ui/widget/dock-item.cpp')
-rw-r--r--src/ui/widget/dock-item.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/widget/dock-item.cpp b/src/ui/widget/dock-item.cpp
index 18ab70eb4..4a06163e1 100644
--- a/src/ui/widget/dock-item.cpp
+++ b/src/ui/widget/dock-item.cpp
@@ -45,7 +45,12 @@ DockItem::DockItem(Dock& dock, const Glib::ustring& name, const Glib::ustring& l
int width = 0;
int height = 0;
Gtk::IconSize::lookup(Gtk::ICON_SIZE_MENU, width, height);
- _icon_pixbuf = iconTheme->load_icon(icon_name, width);
+ try {
+ _icon_pixbuf = iconTheme->load_icon(icon_name, width);
+ }
+ catch (const Gtk::IconThemeError& e) {
+ std::cerr << "DocItem::DocItem(): " << e.what() << std::endl;
+ }
}
if ( _icon_pixbuf ) {