From f80d5b44e2fdad56b6aad9ca7fb14f44c835915c Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 6 Jul 2017 11:32:09 +0200 Subject: Don't check if icon exists in default theme since that prevents use of fallback icons. --- src/ui/widget/imagetoggler.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/ui/widget/imagetoggler.cpp b/src/ui/widget/imagetoggler.cpp index 81d0edd47..a2783ecb1 100644 --- a/src/ui/widget/imagetoggler.cpp +++ b/src/ui/widget/imagetoggler.cpp @@ -37,14 +37,8 @@ ImageToggler::ImageToggler( char const* on, char const* off) : int phys = width; Glib::RefPtr icon_theme = Gtk::IconTheme::get_default(); - - - if (icon_theme->has_icon(_pixOnName)) { - _property_pixbuf_on = icon_theme->load_icon(_pixOnName, phys, (Gtk::IconLookupFlags)0); - } - if (icon_theme->has_icon(_pixOffName)) { - _property_pixbuf_off = icon_theme->load_icon(_pixOffName, phys, (Gtk::IconLookupFlags)0); - } + _property_pixbuf_on = icon_theme->load_icon(_pixOnName, phys, (Gtk::IconLookupFlags)0); + _property_pixbuf_off = icon_theme->load_icon(_pixOffName, phys, (Gtk::IconLookupFlags)0); property_pixbuf() = _property_pixbuf_off.get_value(); } -- cgit v1.2.3