summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/spin-button-tool-item.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-06-06 17:51:26 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-06-06 17:51:26 +0000
commita5ae1a33cd4a9100c9466d092ec6b3305afed3f5 (patch)
tree85edab94bb56aadc370daf269b7ff59e3e292c03 /src/ui/widget/spin-button-tool-item.cpp
parentStyle fixes. (diff)
downloadinkscape-a5ae1a33cd4a9100c9466d092ec6b3305afed3f5.tar.gz
inkscape-a5ae1a33cd4a9100c9466d092ec6b3305afed3f5.zip
Fix build (loading icon).
Diffstat (limited to 'src/ui/widget/spin-button-tool-item.cpp')
-rw-r--r--src/ui/widget/spin-button-tool-item.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/widget/spin-button-tool-item.cpp b/src/ui/widget/spin-button-tool-item.cpp
index e190d8dd2..c21989723 100644
--- a/src/ui/widget/spin-button-tool-item.cpp
+++ b/src/ui/widget/spin-button-tool-item.cpp
@@ -10,6 +10,7 @@
#include <utility>
#include "spinbutton.h"
+#include "ui/icon-loader.h"
namespace Inkscape {
namespace UI {
@@ -406,7 +407,7 @@ void
SpinButtonToolItem::set_icon(const Glib::ustring& icon_name)
{
_hbox->remove(*_label);
- _icon = Gtk::manage(new Gtk::Image(icon_name, Gtk::ICON_SIZE_SMALL_TOOLBAR));
+ _icon = Gtk::manage(sp_get_icon_image(icon_name, Gtk::ICON_SIZE_SMALL_TOOLBAR));
if(_icon) {
_hbox->pack_start(*_icon);