summaryrefslogtreecommitdiff
path: root/src/iconthemewrapper.cpp
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-07-11 00:23:18 -0400
committerraveit65 <[email protected]>2019-09-13 14:41:47 +0200
commit3df54a27e70b5fe33be90779f319a627c0773df6 (patch)
tree68c4b8bf263d8d556f2e7ae734c18d7cbc73f185 /src/iconthemewrapper.cpp
parent819b1861ebec1d492029a5e50db2ff79b057c14a (diff)
downloadmate-system-monitor-3df54a27e70b5fe33be90779f319a627c0773df6.tar.bz2
mate-system-monitor-3df54a27e70b5fe33be90779f319a627c0773df6.tar.xz
Render icons as cairo surfaces for HiDPI support
back ported from: https://github.com/mate-desktop/mate-system-monitor/commit/bc190e7
Diffstat (limited to 'src/iconthemewrapper.cpp')
-rw-r--r--src/iconthemewrapper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iconthemewrapper.cpp b/src/iconthemewrapper.cpp
index 1e84b31..e44bdcd 100644
--- a/src/iconthemewrapper.cpp
+++ b/src/iconthemewrapper.cpp
@@ -7,12 +7,12 @@
Glib::RefPtr<Gdk::Pixbuf>
-procman::IconThemeWrapper::load_icon(const Glib::ustring& icon_name,
- int size, Gtk::IconLookupFlags flags) const
+procman::IconThemeWrapper::load_icon(const Glib::ustring& icon_name, int size) const
{
+ gint scale = gdk_window_get_scale_factor (gdk_get_default_root_window ());
try
{
- return Gtk::IconTheme::get_default()->load_icon(icon_name, size, flags);
+ return Gtk::IconTheme::get_default()->load_icon(icon_name, size, scale, Gtk::ICON_LOOKUP_USE_BUILTIN | Gtk::ICON_LOOKUP_FORCE_SIZE);
}
catch (Gtk::IconThemeError &error)
{