summaryrefslogtreecommitdiffstats
path: root/src/widgets/icon.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-04-12 10:28:18 +0000
committertavmjong-free <tavmjong@free.fr>2016-04-12 10:28:18 +0000
commit3ee1ba1e9a8019e98012bc77ff3953363b2fa17a (patch)
tree5887f9e7070f96d3c543b1dbc01d3fb128fccc3a /src/widgets/icon.cpp
parentBump ifdefs to 3.8 (now ifdefs say 3.0 instead of 3.2 or 3.8) (diff)
downloadinkscape-3ee1ba1e9a8019e98012bc77ff3953363b2fa17a.tar.gz
inkscape-3ee1ba1e9a8019e98012bc77ff3953363b2fa17a.zip
Add option for larger icons (useful for 4K display).
(bzr r14789)
Diffstat (limited to 'src/widgets/icon.cpp')
-rw-r--r--src/widgets/icon.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widgets/icon.cpp b/src/widgets/icon.cpp
index 542d16797..f998cd66d 100644
--- a/src/widgets/icon.cpp
+++ b/src/widgets/icon.cpp
@@ -257,6 +257,14 @@ gboolean IconImpl::draw(GtkWidget *widget, cairo_t* cr)
image = gtk_render_icon_pixbuf(gtk_widget_get_style_context(widget),
source,
(GtkIconSize)-1);
+
+ // gtk_render_icon_pixbuf deprecated, replaced by:
+ // GtkIconTheme *icon_theme = gtk_icon_theme_get_default();
+ // image = gtk_icon_theme_load_icon (icon_theme,
+ // name,
+ // 32,
+ // 0,
+ // NULL);
#else
image = gtk_style_render_icon(gtk_widget_get_style(widget), source,
gtk_widget_get_direction(widget),