diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-07-06 09:32:09 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2017-07-06 09:32:09 +0000 |
| commit | f80d5b44e2fdad56b6aad9ca7fb14f44c835915c (patch) | |
| tree | 0c7c586ab23f1427a45fe3c17e6589cef10b29be /src | |
| parent | More icon cleanup. (diff) | |
| download | inkscape-f80d5b44e2fdad56b6aad9ca7fb14f44c835915c.tar.gz inkscape-f80d5b44e2fdad56b6aad9ca7fb14f44c835915c.zip | |
Don't check if icon exists in default theme since that prevents use of fallback icons.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/widget/imagetoggler.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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<Gtk::IconTheme> 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(); } |
