summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);