summaryrefslogtreecommitdiffstats
path: root/src/ui/icon-loader.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-07-28 19:36:35 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-07-28 19:36:35 +0000
commit19fb11b30039b2a63eab51e2e0fcf9e447a5dba8 (patch)
tree6e1162634a8ca88f7e12424ce03bf4ab8aa77c65 /src/ui/icon-loader.cpp
parentFix a rendering issue I introduce in previous merge (diff)
downloadinkscape-19fb11b30039b2a63eab51e2e0fcf9e447a5dba8.tar.gz
inkscape-19fb11b30039b2a63eab51e2e0fcf9e447a5dba8.zip
Fix for bug https://gitlab.com/inkscape/inbox/issues/699
Diffstat (limited to 'src/ui/icon-loader.cpp')
-rw-r--r--src/ui/icon-loader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/icon-loader.cpp b/src/ui/icon-loader.cpp
index c3182aa8f..c73273953 100644
--- a/src/ui/icon-loader.cpp
+++ b/src/ui/icon-loader.cpp
@@ -44,17 +44,17 @@ Gtk::Image *sp_get_icon_image(Glib::ustring icon_name, Gtk::BuiltinIconSize icon
return icon;
}
-GtkWidget *sp_get_icon_image(Glib::ustring icon_name, GtkIconSize icon_size)
-{
- return gtk_image_new_from_icon_name(icon_name.c_str(), icon_size);
-}
-
Gtk::Image *sp_get_icon_image(Glib::ustring icon_name, gchar const *prefs_size)
{
Gtk::IconSize icon_size = Inkscape::UI::ToolboxFactory::prefToSize_mm(prefs_size);
return sp_get_icon_image(icon_name, icon_size);
}
+GtkWidget *sp_get_icon_image(Glib::ustring icon_name, GtkIconSize icon_size)
+{
+ return gtk_image_new_from_icon_name(icon_name.c_str(), icon_size);
+}
+
Glib::RefPtr<Gdk::Pixbuf> sp_get_icon_pixbuf(Glib::ustring icon_name, gint size)
{
Glib::RefPtr<Gdk::Display> display = Gdk::Display::get_default();