summaryrefslogtreecommitdiff
path: root/src/prettytable.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-25 14:15:59 +0200
committerraveit65 <[email protected]>2020-08-27 12:33:35 +0200
commit58e338e80ac0e611626f5b2e62a2f32a4059025a (patch)
treea0a6b2ab1bda22865e68e0e46c800e56fd937ea9 /src/prettytable.h
parent706246d2dcb4bc3b41cf3a45c13266ed42be63b9 (diff)
downloadmate-system-monitor-58e338e80ac0e611626f5b2e62a2f32a4059025a.tar.bz2
mate-system-monitor-58e338e80ac0e611626f5b2e62a2f32a4059025a.tar.xz
pretty-table: prefer GIO to get application icons
Diffstat (limited to 'src/prettytable.h')
-rw-r--r--src/prettytable.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/prettytable.h b/src/prettytable.h
index 2109121..ac150de 100644
--- a/src/prettytable.h
+++ b/src/prettytable.h
@@ -7,6 +7,7 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glibmm/refptr.h>
#include <gdkmm/pixbuf.h>
+#include <giomm/filemonitor.h>
#include <map>
#include <string>
@@ -43,18 +44,28 @@ private:
Glib::RefPtr<Gdk::Pixbuf> get_icon_from_theme(const ProcInfo &);
Glib::RefPtr<Gdk::Pixbuf> get_icon_from_default(const ProcInfo &);
+ Glib::RefPtr<Gdk::Pixbuf> get_icon_from_gio(const ProcInfo &);
Glib::RefPtr<Gdk::Pixbuf> get_icon_from_wnck(const ProcInfo &);
Glib::RefPtr<Gdk::Pixbuf> get_icon_from_name(const ProcInfo &);
Glib::RefPtr<Gdk::Pixbuf> get_icon_for_kernel(const ProcInfo &);
Glib::RefPtr<Gdk::Pixbuf> get_icon_dummy(const ProcInfo &);
bool get_default_icon_name(const string &cmd, string &name);
+ void file_monitor_event (Glib::RefPtr<Gio::File>,
+ Glib::RefPtr<Gio::File>,
+ Gio::FileMonitorEvent);
+ void init_gio_app_cache ();
+
typedef std::map<string, Glib::RefPtr<Gdk::Pixbuf> > IconCache;
typedef std::map<pid_t, Glib::RefPtr<Gdk::Pixbuf> > IconsForPID;
+ typedef std::map<string, Glib::RefPtr<Gio::AppInfo> > AppCache;
+ typedef std::map<string, Glib::RefPtr<Gio::FileMonitor> > DesktopDirMonitors;
IconsForPID apps;
IconCache defaults;
+ DesktopDirMonitors monitors;
+ AppCache gio_apps;
procman::IconThemeWrapper theme;
};