[gnome-system-monitor] Fix build with wnck support.



commit ebe3f1be3d1ff6665127829d9637ad4e8c1afd01
Author: Benoît Dejean <bdejean gmail com>
Date:   Thu Sep 7 16:45:55 2017 +0200

    Fix build with wnck support.
    
    Issue reported by Yuri <me slie ru>.
    
https://github.com/GNOME/gnome-system-monitor/commit/a535df9252633561d4898ed0ae0cc867b95d9cf2#commitcomment-24128012

 src/prettytable.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/prettytable.cpp b/src/prettytable.cpp
index 52b9524..3a04c63 100644
--- a/src/prettytable.cpp
+++ b/src/prettytable.cpp
@@ -106,12 +106,11 @@ PrettyTable::register_application(pid_t pid, Glib::RefPtr<Gdk::Pixbuf> icon)
   ** table to be added later */
     if (ProcInfo* info = GsmApplication::get()->processes.find(pid))
     {
-      info.set_icon(icon);
+      info->set_icon(icon);
       // move the ref to the map
       this->apps[pid] = icon;
       procman_debug("WNCK OK for %u", unsigned(pid));
     }
-  } catch (const std::out_of_range& e) {}
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]