Commit Graph

285 Commits

Author SHA1 Message Date
Mike Massonnet
568fc7f148 Update status icon tooltip only if visible 2010-06-02 19:34:55 +02:00
Mike Massonnet
46174f188c Update command line when needed 2010-06-02 16:27:47 +02:00
Mike Massonnet
f96123a530 Sort on first click in descending order 2010-06-02 02:53:17 +02:00
Mike Massonnet
aa3e8ead9d On window hide do a normal check on the window 2010-06-02 02:47:39 +02:00
Mike Massonnet
4d20ea95c5 Center dialogs on mouse cursor 2010-06-02 02:47:18 +02:00
Mike Massonnet
9238d67f9a Avoid saving columns positions when closing application
When the application was closed, the columns-changed signal was
triggered everytime a tree view column was destroyed/removed from the
tree view (think dispose), and this was bad since the columns positions
may have been saved as a succession of zeros. Avoid this.
2010-06-02 02:16:01 +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
20d95b74db Set localized name of application 2010-05-30 23:31:31 +02:00
Mike Massonnet
23ae93bc9e Replace image against radio menu items in the refresh rate menu
The stock items right-arrow are not always available (sad truth),
therefore be smart and use a radio menu item that will always be
displayed.
2010-05-30 18:24:56 +02:00
Mike Massonnet
9e3eb2d07a Fix cformat parameters for status icon 2010-05-29 18:01:18 +02:00
Mike Massonnet
8d32b99253 Replace carriage returns against spaces in commands 2010-05-28 15:48:08 +02:00
Mike Massonnet
ad3391bb95 Show tasks with changed status with a yellow background 2010-05-28 01:32:02 +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
fe31827852 Show terminated tasks with a red background 2010-05-27 01:21:26 +02:00
Mike Massonnet
e3d3aa2e18 Show started tasks with a green background 2010-05-26 22:35:34 +02:00
Mike Massonnet
1974a2fbcd Make SearchFunc for tree view case insensitive 2010-05-26 15:01:53 +02:00
Mike Massonnet
322b9978df Use a personal SearchFunc for the tree view
Use the function strstr to find matches inside the command line, and not
only starting with. Browsing through matches can be done by typing the
arrows down and up.
2010-05-26 12:08:07 +02:00
Mike Massonnet
0008254055 Add words about adding support for a new OS
Add a skel file (task-manager-skel.c) and make it possible in the
build-env to build the task manager with this file (--with-skel).
2010-05-26 06:54:37 +02:00
Mike Massonnet
98bbf15101 Surround the statusbar's hbox area with padding 2010-05-25 13:01:35 +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
766d5b1bdc Reduce minimum width request of the (temporary) progress bars 2010-05-24 23:04:46 +02:00
Mike Massonnet
1b6a226a81 Display only installed programs in the “Execute” menu 2010-05-24 22:39:19 +02:00
Mike Massonnet
f929d83f37 [linux|solaris] Fix regression introduced with the “Refresh rate” option
The CPU usage computation done for the processes were broken when the
refresh rate was different than a second. The introduced fix is only
necessary for the Linux and OpenSolaris implementations.
2010-05-24 19:41:41 +02:00
Mike Massonnet
ede8aa2580 Drop foced debug output of initial tasks 2010-05-24 02:27:19 +02:00
Mike Massonnet
e7fe287e19 Show tooltip with system information on status icon 2010-05-24 02:25:04 +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
0a8e9b2ae5 Hide inside the notification area 2010-05-23 20:57:25 +02:00
Mike Massonnet
5eaf309cfd Reorder signals on treeview right click
Show Terminate after Stop and Kill.
2010-05-23 20:00:13 +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
d806b12544 Display a warning banner when running as root 2010-05-23 13:59:43 +02:00
Mike Massonnet
9a26498a8b Implement option “Full command line” 2010-05-23 13:08:45 +02:00
Mike Massonnet
f5e7344a8b Implement option “More precision” 2010-05-23 00:47:02 +02:00
Mike Massonnet
286f561088 Implement option “Refresh rate” 2010-05-22 22:45:38 +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
0e52fb3db1 Credit people behind the different OS implementations 2010-05-22 00:39:38 +02:00
Mike Massonnet
ee0e367f07 Fix bug retrieving bad PID from treeview
Use the model_filter to retrieve the correct selected path and therefore
the right PID.
2010-05-21 16:08:10 +02:00
Mike Massonnet
6b8162b4e9 [linux|freebsd] Fix condition to calculate CPU usage 2010-05-21 15:29:45 +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
97d2f77ee6 [openbsd] Don't provide memory/swap values in KiB 2010-05-21 13:37:35 +02:00
Mike Massonnet
175b4cb541 Add FreeBSD implementation
Original code (task list) is from Oliver Lehmann and was licensed under
FreeBSD (BSD 2-clause.)
2010-05-21 13:28:10 +02:00
Mike Massonnet
bbd591fd23 Display Swap usage in Solaris implementation
The Swap usage is retrieved through swapctl(). Also on a separate change, read
the CPU time from the nanosecs instead of ticks for increased precision.
2010-05-18 21:48:54 +02:00
Mike Massonnet
bb79501cfb Set GTK+ requirement on GtkBuilder file to 2.12 2010-05-16 15:03:29 +02:00
Mike Massonnet
db0ab60561 Re-add Solaris implementation
Solaris support is in again however the Swap usage is missing. Older
files from the tree source have been removed.
2010-05-16 13:52:52 +02:00
Landry Breuil
ee9bd057fd Merge branch 'master' of ssh://git.xfce.org/git/apps/xfce4-taskmanager
Conflicts:
	src/task-manager-bsd.c
2010-05-16 12:56:06 +02:00
Landry Breuil
00d6107972 Implement pid_is_sleeping() and fix send_signal_to_pid() 2010-05-16 12:53:50 +02:00
Mike Massonnet
0be1d45507 Don't recount CPU count in Linux implementation 2010-05-16 12:30:37 +02:00
Mike Massonnet
b961822ba4 Move POSIX code to task-manager.c
The functions send_signal_to_pid() and set_priority_to_pid() are using
POSIX functions and “should” be safe in task-manager.c. Still keep the
enumeration as a bridge between virtual values and real values, there is
no benefit removing them (wasting minutes) and it won't make the code
look better (or worse).

The functions have been removed from the Linux and BSD implementations.
2010-05-16 12:30:37 +02:00
Landry Breuil
a721cda4be Set Task name from p_comm field, and cmdline from KERN_PROC_ARGV 2010-05-13 20:07:35 +02:00
Landry Breuil
44dc437214 correctly implement set_priority/send_signal_to_pid() 2010-05-13 19:57:37 +02:00
Landry Breuil
10247249eb Implement fetching of swap stats 2010-05-13 19:56:51 +02:00