Commit Graph

37 Commits

Author SHA1 Message Date
Phirxian
b470c568cf adding network !!
- rx/tx graph
- label rx/tx/error
- rewriting some codes
- adding packetin/packetout for each pid
- adding pcap sniffing port -> count
- adding inode mapping to get port <- inode <- pid

# Conflicts:
#	src/main.c
#	src/process-monitor.c
#	src/process-monitor.h
#	src/process-statusbar.c
#	src/process-window.c
#	src/process-window.h
#	src/settings.h
#	src/task-manager-linux.c
#	src/task-manager.c
#	src/task-manager.h

starting freebsd

get mac address trough getifaddrs function, should be more portable
remove mac_get_binary_from_file that use /sys/class/net/%s/address

freebsd adding packetin/packetout/active socket trough sockstat
- move linux code
- adding pseudo inode mapping

OpenBSD suppoort & code cleanup

NetBSD global network usage & per process

hiding of settings and columns on network initialization failure

Apply .clang-format file

# Conflicts:
#	src/main.c
#	src/process-monitor.c
#	src/process-monitor.h
#	src/process-statusbar.c
#	src/process-window.c
#	src/process-window.h
#	src/settings-dialog.c
#	src/settings.h
#	src/task-manager-bsd.c
#	src/task-manager.c
#	src/task-manager.h

use AC_CHECK_LIB and add the corresponding ifdef to disable pcap functionality

fix compilation openbsd

clang format

fix compilation netbsd

clang format ...

disable clang-format on task-manager-bsd, important include order

fix compilation freebsd

disable clang-format on task-manager-freebsd, important include order

typo

openbsd include

fix segfault on openbsd without permissions

fix warning on freebsd : -Wint-to-pointer-cast -Wmissing-declarations -Wshadow

fix compilation for "skel" and "solaris" (implementation todo)

freebsd iterate over all network interface

linux iterate over all network interface and fix some warnings

netbsd iterator over all network interface and fix args issue trough kvm_getargv2

fix ptr issue, clang format

ide change coding style ?

fix close button, hide when "Keep in the notification area" is enable

Discard my changes on the README

Solaris adding mac adresse, rx/tx/error for the network graph
libsocket is in the default package of solaris, it should be linked for getifaddrs

adding packet callback for solaris

solaris pid to socket mapping (tcp, tcp6, udp, udp6) !

final clang format

credit ?

Linux adding udp, udp6, icmp, icmp6, raw, raw6.
Disable virtual network device on linux.

Fix -Wincompatible-pointer-types and -Wdeprecated-declarations
use WNCK_CHECK_VERSION and WnckHandle on version >= 43.0.0

asked changes
2024-07-16 03:30:40 +02:00
Gaël Bonithon
2a9a32b3a0 Apply .clang-format file 2024-05-05 17:58:13 +02:00
Gaël Bonithon
95a2d9c5bf Clean up and sort includes 2024-05-05 17:58:13 +02:00
d094f06f6a Aggregate children memory and cpu
Closes: #58
2024-04-09 23:41:31 +02:00
Gaël Bonithon
c5714580a9 Properly finalize global objects in main 2023-09-11 09:06:34 +02:00
Gaël Bonithon
eb85e4110a Add missing include
Needed to know if GDK_WINDOWING_X11 is defined or not.

Fixes: 30185130f2
2023-09-11 06:28:21 +02:00
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
Evangelos Foutras
fa7c8dd091 Fix bindings related to the "show-legend" setting
- Bind to xfconf so the "show-legend" setting is saved when toggled in
  the settings dialog.
- Flip the binding in xtm_process_window_init so the visibility of the
  legend is initialized from XtmSettings.
2022-05-23 11:51:18 +00:00
Simon Steinbeiss
b376e3d1b0 Store column positions again 2021-02-18 17:30:56 +01:00
Simon Steinbeiss
31feaf1d26 Store sort-column-id and sort-type (Fixes #36) 2021-02-18 16:28:24 +01:00
Simon Steinbeiss
28e947b36d Fix erroneous binding of settings (Fixes #37) 2021-02-08 11:15:07 +01:00
Simon Steinbeiss
1b0aaad892 Drop unused var and sort copyright 2021-01-25 14:15:40 +01: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
1addd38ce3 Simplify settings dialog code 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
f4e9726e20 Drop leftover function for toolbar style 2021-01-19 13:25:57 +01:00
Andre Miranda
34c8d28309 Always show memory usage in bytes and percent (Fixes #24) 2020-05-25 21:12:52 +02:00
rim
be159c9a69 Improve settings saving (bug #15213) 2019-05-21 19:51:53 +02:00
Simon Steinbeiss
a18b8bd3c3 Move legend from tooltip to hide-able statusbar (Bug #14131) 2019-04-24 22:22:13 +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
Harald Judt
a91e05fb73 Save and restore the handle position across restarts 2014-12-19 16:10:49 +01:00
Landry Breuil
32443defff Merge branch 'peter/tree-model' 2014-12-04 20:57:16 +01:00
Landry Breuil
589ea153cf Add a show-memory-in-xbytes checkbox and its corresponding property 2014-12-04 20:37:31 +01:00
Peter de Ridder
dbd10ae655 Added the process tree to the settings. 2014-12-03 23:21:18 +01:00
Landry Breuil
aed546d1c1 Default "Show/hide the status icon" to FALSE
This way, the close button closes the taskmanager by default instead of hiding it
in the systray, which seems to confuse/annoy most users.
2014-12-01 10:20:32 +01:00
Mike Massonnet
36ccc36bb7 Implement option "Show application icons" 2010-10-04 19:54:44 +02:00
Mike Massonnet
95c3ef3246 Implement option "Toolbar style" 2010-09-29 16:40:30 +02:00
Mike Massonnet
39e08fb60e Implement option "Prompt for terminating tasks" 2010-09-27 14:57:22 +00:00
Mike Massonnet
f546aa846b Initial settings dialog shown on settings-tool-button click
Not yet finished, it includes control for some check buttons currently.
2010-08-08 14:12:49 +02: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
58b85e2a73 Get the tree view columns reorderable
The tree view columns can be reordered, the state will be saved in the
configuration and reloaded at next start.
2010-05-27 23:57:08 +02:00
Mike Massonnet
9c021a087c Tweak default settings
Set default refresh rate to 750ms (makes updating snappier), don't show
with full command lines and turn more precision off.
2010-05-25 12:13:43 +02:00
Mike Massonnet
c0eb574089 Make status icon optional with the new setting “Show status icon” 2010-05-24 01:49:13 +02:00
Mike Massonnet
91d509ccdb New options “Refresh rate,” “More precision” and “Full command line"
New options are in the GUI although they don't do anything yet.
2010-05-22 22:21:51 +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
99a4a68097 Renamed Show "system" processes to "all" and added a GtkTreeModelFilter
<sigh>
  I started to rename "Show sytem processes" to "Show all processes"
  and included a GtkTreeModelFilter in between the GtkListStore and
  GtkTreeView but nooooo... I had to write private code to sort the
  columns. In fact the GtkTreeViewColumn class assumes the model to
  be sortable but GtkTreeModelFilter is not, although it provides an
  accessor function to the underlying model which is.

  And not to mention that understanding GtkTreeViewColumn is a task
  on its own! Having the code under the hand is the only exit.
</sigh>
2010-05-10 11:29:34 +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