summaryrefslogtreecommitdiff
path: root/src/procman.h
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-29 18:10:09 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-01 19:45:21 +0100
commitb7d7127bfa1b1c2e8d10467087556298cdc77102 (patch)
tree2f603c303e35f188593d5ca8fabe8459e609b720 /src/procman.h
parentdf50b9c871f4f00609bef2ee022495677c4511fa (diff)
downloadmate-system-monitor-b7d7127bfa1b1c2e8d10467087556298cdc77102.tar.bz2
mate-system-monitor-b7d7127bfa1b1c2e8d10467087556298cdc77102.tar.xz
GTK3: Do not use deprecated API
Namely, we make the following replacements: * GtkStyle -> GtkStyleContext * GdkColor -> GdkRGBA * GtkColorSelectionDialog -> GtkColorChooserDialog taken from....but adjusted: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=7ac1c1c
Diffstat (limited to 'src/procman.h')
-rw-r--r--src/procman.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/procman.h b/src/procman.h
index 55fea88..46c93a9 100644
--- a/src/procman.h
+++ b/src/procman.h
@@ -96,6 +96,15 @@ struct ProcConfig
int disks_update_interval;
gint whose_process;
gint current_tab;
+#if GTK_CHECK_VERSION(3,0,0)
+ GdkRGBA cpu_color[GLIBTOP_NCPU];
+ GdkRGBA mem_color;
+ GdkRGBA swap_color;
+ GdkRGBA net_in_color;
+ GdkRGBA net_out_color;
+ GdkRGBA bg_color;
+ GdkRGBA frame_color;
+#else
GdkColor cpu_color[GLIBTOP_NCPU];
GdkColor mem_color;
GdkColor swap_color;
@@ -103,6 +112,7 @@ struct ProcConfig
GdkColor net_out_color;
GdkColor bg_color;
GdkColor frame_color;
+#endif
gint num_cpus;
bool solaris_mode;
bool network_in_bits;