summaryrefslogtreecommitdiffstats
path: root/src/ui/icon-loader.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-06-18 02:45:20 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-06-18 02:45:20 +0000
commit02864fd1abb1d75feb90453cc49d291610d76691 (patch)
tree970a55ea4339c1fd55133ae12b35baa067b92af6 /src/ui/icon-loader.cpp
parentImproving styling (diff)
downloadinkscape-02864fd1abb1d75feb90453cc49d291610d76691.tar.gz
inkscape-02864fd1abb1d75feb90453cc49d291610d76691.zip
Fix a icon bug
Diffstat (limited to 'src/ui/icon-loader.cpp')
-rw-r--r--src/ui/icon-loader.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/icon-loader.cpp b/src/ui/icon-loader.cpp
index 6853d7e68..2e0e11333 100644
--- a/src/ui/icon-loader.cpp
+++ b/src/ui/icon-loader.cpp
@@ -15,7 +15,6 @@
#include "inkscape.h"
#include "svg/svg-color.h"
#include "widgets/toolbox.h"
-#include <gtkmm/iconinfo.h>
#include <gdkmm/display.h>
#include <gdkmm/screen.h>
#include <gtkmm/iconinfo.h>
@@ -80,7 +79,9 @@ Glib::RefPtr<Gdk::Pixbuf> sp_get_icon_pixbuf(Glib::ustring icon_name, gint size)
sp_svg_write_color(colornamedwarning, sizeof(colornamedwarning), colorsetwarning);
int colorseterror = prefs->getInt("/theme/symbolicErrorColor", 0xcc0000ff);
sp_svg_write_color(colornamederror, sizeof(colornamederror), colorseterror);
- _icon_pixbuf = iconinfo.load_symbolic(Gdk::RGBA(colornamed), Gdk::RGBA(colornamedsuccess), Gdk::RGBA(colornamedwarning), Gdk::RGBA(colornamederror), was_symbolic);
+ _icon_pixbuf =
+ iconinfo.load_symbolic(Gdk::RGBA(colornamed), Gdk::RGBA(colornamedsuccess),
+ Gdk::RGBA(colornamedwarning), Gdk::RGBA(colornamederror), was_symbolic);
} else {
Glib::RefPtr<Gtk::StyleContext> stylecontext = SP_ACTIVE_DESKTOP->getToplevel()->get_style_context();
_icon_pixbuf = iconinfo.load_symbolic(stylecontext, was_symbolic);