diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-16 21:32:16 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-16 21:32:16 +0000 |
| commit | dc4161332ffa97e75b5d2deecf2a47eb62e38c8f (patch) | |
| tree | 2ad76f2101e86efeaf07f4aea62c84c3e70e45da /src/ui/widget/dock-item.cpp | |
| parent | Some improvements to redraw (diff) | |
| parent | Add label (diff) | |
| download | inkscape-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.cpp | 7 |
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 ) { |
