Commit Graph

22 Commits

Author SHA1 Message Date
Yousuf Philips
a93616adfb statusbar: Use better color that works well with both light and dark themes (!17)
Improved fix for #26
2021-01-31 23:45:13 +01:00
Gaël Bonithon
e25b5246b2 Fix compilation warnings 2021-01-21 17:14:34 +01:00
Simon Steinbeiss
7005713f90 Ellipsize memory and swap labels (Fixes #32)
Also show the full values in a tooltip.
2021-01-19 13:25:57 +01:00
Andre Miranda
35e5373888 statusbar: Use color with better contrast for dark themes 2020-08-18 23:32:39 +02:00
Andre Miranda
04407bceee Drop gtk2 support 2020-06-26 17:54:24 +02:00
rim
5e0fb6f4bc Use sizeof() when appropriate instead of hardcoding values (bug 14401, bug 14403) 2018-05-26 23:19:55 +02:00
Simon Steinbeiss
a211e03f3d Fix CPU and memory color labels in Gtk3 2017-01-26 22:55:30 +01: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
2ccd5469ad Add proper color-setting for the labels in Gtk3 2014-12-19 11:28:47 +01:00
Simon Steinbeiss
e97b77ee62 Make CPU and Mem labels use the graph colors 2014-12-18 11:05:16 +01:00
Simon Steinbeiss
3486d3fab1 Rearrange the UI to resemble top
Moved the graphs below the toolbar and made them taller, so that they
are more readable/usable. Converted the statusbar into a box, moved it
below the graphs and rearranged the content to match the graphs.
2014-12-17 22:50:41 +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
f7dc12a375 use a plain GtkBox for the statusbar 2014-12-11 22:44:12 +01:00
Landry Breuil
c6c74cd959 Display the memory usage as bytes instead of a percentage when show-memory-in-xbytes is set (#6503)
- move the percentage calculation to init_timeout(), use g_format_size() here too
- carry memory/swap used vs total all around
- make the XtmProcessStatusbar swap and memory properties strings instead of float

Based on a diff from  Ján Sucan, thanks!

Note to translators: this changes some strings, mostly removing % in format printing
2014-12-04 20:52:12 +01:00
Mike Massonnet
06921c3ac1 Plug a dynamic leak
A leak occured in the timer code, and thus the memory was growing over
time. Cf. src/task-manager.c(model_update_tree_iter), the old_state
variable was not free'd.

Plugged other static leaks at the same time.
2010-06-02 01:02:40 +02:00
Mike Massonnet
98bbf15101 Surround the statusbar's hbox area with padding 2010-05-25 13:01:35 +02:00
Mike Massonnet
4dc36d296a Hide Swap usage from statusbar when swap total equals zero 2010-05-23 19:57:25 +02:00
Mike Massonnet
f5e7344a8b Implement option “More precision” 2010-05-23 00:47:02 +02:00
Mike Massonnet
d212ce6b43 Fix compiler warnings from --enable-debug=yes
Fixed old-style function definitions, dropped unused variables, renamed
signal to xtm_signal (it shadowed a previous global declaration from
signal.h,) dropped the G_UN/LIKELY calls, missing includes and casted
here and there.

The task-manager-*.c files /would/ have to be individually fixed.
2010-05-21 15:14:32 +02:00
Mike Massonnet
71d1684696 Add precision to memory/swap and CPU
Switched all the gushort against gfloat data types for the memory, swap
and CPU usages. Show them with a precision of two decimals in the GUI.
2010-05-02 17:03:58 +02:00
Mike Massonnet
9a49bf015a Initial TaskManager class and make room for Swap
Added the TaskManager class to hold system information and tasks.
Currently it provides username and hostname based on POSIX functions.
The Swap is now part of the system information and is being displayed in
the statusbar.
2010-05-02 17:00:30 +02:00
Mike Massonnet
b83eb75002 Custom statusbar
The statusbar is created since a separate widget class and has three
different labels (settable through properties) for CPU, memory and
number of processes. This makes it more convenient to change one or
another value and it gives a nicer look.
2010-05-02 17:00:24 +02:00