summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-11-24 15:48:03 +0300
committerWolfgang Ulbrich <[email protected]>2015-11-28 00:04:31 +0100
commit34d23903484bbea9b123949c61b878533a88c60d (patch)
tree65c51db5372217b521cfb2c4bebf9c0d1c8e6d5f
parent4669a68b2d0627172a34d63e20d7d17929725878 (diff)
downloadmate-system-monitor-34d23903484bbea9b123949c61b878533a88c60d.tar.bz2
mate-system-monitor-34d23903484bbea9b123949c61b878533a88c60d.tar.xz
process table: force icon size on loading
fixes the huge icon of mate-sensors-applet process in LMDE 2 adapted from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=5480731230f9c6849fbf0aea1288b18bc9e62480
-rw-r--r--src/prettytable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/prettytable.cpp b/src/prettytable.cpp
index 5c2b571..647e15b 100644
--- a/src/prettytable.cpp
+++ b/src/prettytable.cpp
@@ -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);
+ return this->theme->load_icon(info.name, APP_ICON_SIZE, Gtk::ICON_LOOKUP_USE_BUILTIN | Gtk::ICON_LOOKUP_FORCE_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);
+ pix = this->theme->load_icon(name, APP_ICON_SIZE, Gtk::ICON_LOOKUP_USE_BUILTIN | Gtk::ICON_LOOKUP_FORCE_SIZE);
if (pix)
this->defaults[name] = pix;
} else
@@ -179,7 +179,7 @@ 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);
+ return this->theme->load_icon(info.name, APP_ICON_SIZE, Gtk::ICON_LOOKUP_USE_BUILTIN | Gtk::ICON_LOOKUP_FORCE_SIZE);
}