diff options
author | Victor Kareh <[email protected]> | 2019-07-11 00:23:18 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-09-13 14:41:47 +0200 |
commit | 3df54a27e70b5fe33be90779f319a627c0773df6 (patch) | |
tree | 68c4b8bf263d8d556f2e7ae734c18d7cbc73f185 /src/prettytable.cpp | |
parent | 819b1861ebec1d492029a5e50db2ff79b057c14a (diff) | |
download | mate-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/prettytable.cpp')
-rw-r--r-- | src/prettytable.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/prettytable.cpp b/src/prettytable.cpp index 647e15b..7b8bed6 100644 --- a/src/prettytable.cpp +++ b/src/prettytable.cpp @@ -57,7 +57,7 @@ PrettyTable::on_application_opened(WnckScreen* screen, WnckApplication* app, gpo f = fopen (icon_name, "r"); if (f != NULL) { fclose (f); - icon = that->theme->load_icon(icon_name, APP_ICON_SIZE, Gtk::ICON_LOOKUP_USE_BUILTIN); + icon = that->theme->load_icon(icon_name, APP_ICON_SIZE); } if (not icon) { @@ -116,7 +116,7 @@ PrettyTable::unregister_application(pid_t pid) Glib::RefPtr<Gdk::Pixbuf> PrettyTable::get_icon_from_theme(const ProcInfo &info) { - return this->theme->load_icon(info.name, APP_ICON_SIZE, Gtk::ICON_LOOKUP_USE_BUILTIN | Gtk::ICON_LOOKUP_FORCE_SIZE); + return this->theme->load_icon(info.name, APP_ICON_SIZE); } @@ -149,7 +149,7 @@ PrettyTable::get_icon_from_default(const ProcInfo &info) IconCache::iterator it(this->defaults.find(name)); if (it == this->defaults.end()) { - pix = this->theme->load_icon(name, APP_ICON_SIZE, Gtk::ICON_LOOKUP_USE_BUILTIN | Gtk::ICON_LOOKUP_FORCE_SIZE); + pix = this->theme->load_icon(name, APP_ICON_SIZE); if (pix) this->defaults[name] = pix; } else @@ -179,14 +179,14 @@ PrettyTable::get_icon_from_wnck(const ProcInfo &info) Glib::RefPtr<Gdk::Pixbuf> PrettyTable::get_icon_from_name(const ProcInfo &info) { - return this->theme->load_icon(info.name, APP_ICON_SIZE, Gtk::ICON_LOOKUP_USE_BUILTIN | Gtk::ICON_LOOKUP_FORCE_SIZE); + return this->theme->load_icon(info.name, APP_ICON_SIZE); } Glib::RefPtr<Gdk::Pixbuf> PrettyTable::get_icon_dummy(const ProcInfo &) { - return this->theme->load_icon("application-x-executable", APP_ICON_SIZE, Gtk::ICON_LOOKUP_USE_BUILTIN); + return this->theme->load_icon("application-x-executable", APP_ICON_SIZE); } @@ -212,7 +212,7 @@ Glib::RefPtr<Gdk::Pixbuf> PrettyTable::get_icon_for_kernel(const ProcInfo &info) { if (is_kthread(info)) - return this->theme->load_icon("applications-system", APP_ICON_SIZE, Gtk::ICON_LOOKUP_USE_BUILTIN); + return this->theme->load_icon("applications-system", APP_ICON_SIZE); return Glib::RefPtr<Gdk::Pixbuf>(); } |