From 34d23903484bbea9b123949c61b878533a88c60d Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 24 Nov 2015 15:48:03 +0300 Subject: 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 --- src/prettytable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 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 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); } -- cgit v1.2.1