Commit Graph

29 Commits

Author SHA1 Message Date
Waldemar Zimpel
bfe5308f05 Fix memory leak 2023-09-08 18:36:48 +00:00
acuifex
989c04a6cb Fix graph drop off on the right side
Make an extra vertical line outside the render canvas
to avoid creating a slanted line.
2023-03-13 18:49:47 +03:00
acuifex
af66d2fb24 Change graph peak variable to double 2023-03-13 16:20:36 +03:00
Simon Steinbeiss
86e1493a22 Fix rendering bug for swap graph (relates to #44) 2022-05-24 11:17:55 +02:00
Simon Steinbeiss
dc832a12b3 Fix rendering bug (Fixes #44) 2022-05-23 09:01:11 +02:00
Simon Steinbeiss
36e428bee4 Also include swap in the memory graph 2021-02-12 02:11:27 +01:00
Simon Steinbeiss
0c7c789d48 Reduce drawing code 2021-02-12 01:50:12 +01:00
Andre Miranda
04407bceee Drop gtk2 support 2020-06-26 17:54:24 +02:00
Landry Breuil
fcf8beb64e include task-manager.h to have __unused definition, should fix compilation on linux (bug 14401) 2018-06-01 13:05:19 +02:00
rim
1c09b7329b Use the proper types, add casts where necessary (bug 14401) 2018-05-30 21:46:29 +02:00
rim
66a0d4bfc9 Mark unused params, remove unused macro and args (bug 14401) 2018-05-30 21:29:28 +02:00
rim
704411a38b Properly use float for constants where appropriate (bug 14401, bug 14403) 2018-05-26 23:51:32 +02:00
Landry Breuil
5b68649063 Use #if GTK_CHECK_VERSION(3, 0, 0) instead of #ifdef HAVE_GTK3 2014-12-19 22:54:16 +01:00
Simon Steinbeiss
cd1309d97f Always check if the graph is too small to draw it 2014-12-19 12:06:50 +01:00
Simon Steinbeiss
016168ac83 Prevent drawing the graph if it is too small (Gtk2) 2014-12-19 11:50:47 +01:00
Simon Steinbeiss
8b45017642 Draw CPU and Mem graph in different colors 2014-12-18 11:04:47 +01:00
Peter de Ridder
12bf2c96b0 Use a proper draw callback passing a cairo_t context to xtm_process_monitor_paint 2014-12-17 22:18:32 +01:00
Simon Steinbeiss
e8c8dff357 Drop paint-box option 2014-12-17 10:43:56 +01:00
Simon Steinbeiss
abb5f97740 Hardcode the graph colors and simplify the drawing routines 2014-12-17 10:38:32 +01:00
Landry Breuil
21bf64ee92 use #ifdef instead of #if to avoid warnings with gtk2 2014-12-11 23:29:57 +01:00
Landry Breuil
23c43d14ec comment out gdk_color_parse() calls, allows taskmanager built with gtk3 to run.. 2014-12-11 18:15:12 +01:00
Landry Breuil
3b11350b6a [wip] gets taskmanager to build with Gtk3
- use gtk_widget_get_allocated_width/gtk_widget_get_allocated_height instead of poking at GtkAllocation internals
- use gtk_widget_get_window() instead of poking at window struct member
- correct args for gtk_paint_box/gtk_paint_shadow, probably wrong too but builds for now
2014-12-08 22:57:15 +01:00
Landry Breuil
eaa3886a5d [wip] directly pass a hardcoded red GdkColor where gtk2 code pokes at GtkStyle internals 2014-12-08 22:56:39 +01:00
Landry Breuil
78330dbc19 expose-event was replaced by draw, assign the same callback for now (probably wrong) 2014-12-08 22:55:43 +01:00
Landry Breuil
41a9d833f0 Use gtk_widget_get_window() (appeared in Gtk 2.14) instead of poking at window struct member 2014-12-08 22:53:59 +01:00
Mike Massonnet
e97c14fa68 Implement option "Draw borders around monitors" 2010-09-26 09:47:48 +00:00
Mike Massonnet
67267e606d Set monitor's background box use the prelight state
Most GTK+ themes have the same colors for normal and prelight, but some
use a lighter version which makes the box look more distinguishable.
2010-06-21 12:28:28 +02:00
Mike Massonnet
2a858e2acd Always paint the last monitor peak
Round the minimum history length and always paint the last peak even if
it doesn't fit entirely. This change was needed because visible with
some refresh rates.
2010-06-13 17:33:25 +02:00
Mike Massonnet
30e3592e1d Replace progress bars with monitors 2010-06-13 16:17:29 +02:00