summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/dock-item.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-07-06 10:43:23 +0000
committerTavmjong Bah <tavmjong@free.fr>2017-07-06 10:43:23 +0000
commit05f2e3cabd68bf13c68ecd39946e058b01420d8a (patch)
tree906b16bef378f13f209a24822105f41bb54e15ff /src/ui/widget/dock-item.cpp
parentDon't check if icon exists in default theme since that prevents use of fallba... (diff)
downloadinkscape-05f2e3cabd68bf13c68ecd39946e058b01420d8a.tar.gz
inkscape-05f2e3cabd68bf13c68ecd39946e058b01420d8a.zip
Remove more checks if icon exists in default theme.
Diffstat (limited to 'src/ui/widget/dock-item.cpp')
-rw-r--r--src/ui/widget/dock-item.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ui/widget/dock-item.cpp b/src/ui/widget/dock-item.cpp
index 60ea03fb7..18ab70eb4 100644
--- a/src/ui/widget/dock-item.cpp
+++ b/src/ui/widget/dock-item.cpp
@@ -42,12 +42,10 @@ DockItem::DockItem(Dock& dock, const Glib::ustring& name, const Glib::ustring& l
if (!icon_name.empty()) {
Glib::RefPtr<Gtk::IconTheme> iconTheme = Gtk::IconTheme::get_default();
- if ( iconTheme->has_icon(icon_name) ) {
- int width = 0;
- int height = 0;
- Gtk::IconSize::lookup(Gtk::ICON_SIZE_MENU, width, height);
- _icon_pixbuf = iconTheme->load_icon(icon_name, width);
- }
+ int width = 0;
+ int height = 0;
+ Gtk::IconSize::lookup(Gtk::ICON_SIZE_MENU, width, height);
+ _icon_pixbuf = iconTheme->load_icon(icon_name, width);
}
if ( _icon_pixbuf ) {