Commit Graph

14 Commits

Author SHA1 Message Date
Gaël Bonithon
30185130f2 Make libx11 optional, guard x11 code paths
It's not clear whether libwnck-based functionality will ever have a
counterpart on Wayland, so it seems pointless to replace libwnck with
libxfce4windowing at this stage.

Completes: ecd1e1a645
Related: #75, #78
2023-09-05 17:01:23 +02:00
Simon Steinbeiss
a5aeafc15f Port to xfconf
The internal XtmSettings object is retained so we don't have to refactor
everything, but the backend now uses Xfconf over the rc file.
2021-01-25 14:15:40 +01:00
Simon Steinbeiss
81df60a8ac Set window icon in glade file 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
21cac5760b Add application icon (Issue #23) 2020-05-25 21:04:53 +02:00
Simon Steinbeiss
ec7f5d002e Fix window icon on info and error dialogs 2017-01-26 22:55:30 +01:00
Florian Schüller
8c15f28beb show info dialog on error. Icon for dialog missing 2017-01-26 22:55:30 +01:00
Simon Steinbeiss
68a68ce67b Copy and paste some code from xwininfo 2017-01-26 22:55:30 +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
Landry Breuil
c91db0bb3b Make xtm_process_window_show() public, GApplication will use it to activate a running instance. 2014-12-03 10:24:28 +01:00
Mike Massonnet
7998ed4b66 Drop Private struct from XtmProcessWindow 2010-09-29 16:50:27 +02:00
Mike Massonnet
81bdc6d2ba Fix compiler warnings (original patches from Enrico Tröger)
Add missing include for geteuid() missing declaration
xtm_process_window_show_swap_usage() in process-window.
Fix various compiler warnings from main.c task-manager.c and
app-manager.c.
2010-06-08 22:41:50 +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
cc6dbd8373 Initial commit of new interface
Changes touching the build:
- Bumped version to 0.5.0.
- Removed dependency on Xfce libs (it only depends on GTK+-2.0.)
- Updated Makefile with new source files.
- Build ChangeLog through a script (remove it from source tree.)

More generally speaking, the interface is build on top of a GtkBuilder
UI definition, with a personal GtkTreeView and a Settings GObject to
update the information shown on the interface on changes. All the code
is being written with GObjects which will make it a lot easier to
separate GUI code and system code.
2010-05-01 15:34:25 +02:00