diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-29 18:10:09 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-01 19:45:21 +0100 |
commit | b7d7127bfa1b1c2e8d10467087556298cdc77102 (patch) | |
tree | 2f603c303e35f188593d5ca8fabe8459e609b720 /src/load-graph.h | |
parent | df50b9c871f4f00609bef2ee022495677c4511fa (diff) | |
download | mate-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/load-graph.h')
-rw-r--r-- | src/load-graph.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/load-graph.h b/src/load-graph.h index 2a212fb..b4b3cdd 100644 --- a/src/load-graph.h +++ b/src/load-graph.h @@ -58,7 +58,11 @@ struct LoadGraph { double graph_delx; guint graph_buffer_offset; +#if GTK_CHECK_VERSION(3,0,0) + std::vector<GdkRGBA> colors; +#else std::vector<GdkColor> colors; +#endif std::vector<float> data_block; gfloat* data[NUM_POINTS]; |