Commit Graph

277 Commits

Author SHA1 Message Date
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
Dmitrij Smirnov
8a56b552b5 l10n: Updated Russian (ru) translation to 97%
New status: 44 messages complete with 1 fuzzy and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-16 11:40:27 +02:00
Gökmen Görgen
7acf050320 l10n: Updated Turkish (tr) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-15 18:06:36 +02:00
Johannes Lips
ec00c4a5f9 l10n: Updated German (de) translation to 44%
New status: 20 messages complete with 20 fuzzies and 5 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-15 17:05:33 +02:00
Johannes Lips
2c3d44e56b l10n: Updated German (de) translation to 44%
New status: 20 messages complete with 21 fuzzies and 4 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-15 16:48:13 +02:00
Sergio Marques
772d76074c l10n: Updated Portuguese (pt) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-14 17:27:41 +02:00
Sergio Marques
b4a7c271e2 l10n: Updated Portuguese (pt) translation to 97%
New status: 44 messages complete with 1 fuzzy and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-14 17:27:22 +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
Landry Breuil
e5ad1842bf Fix missing includes, remove unused variables 2010-05-13 19:56:10 +02:00
Landry Breuil
3acd330400 WIP on OpenBSD support
- update wrt new Task structure
- handle zombie processes
- get full cmdline
rework
2010-05-13 18:36:17 +02:00
Leandro Regueiro
1bd6ca0add l10n: Updated Galician (gl) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-12 16:51:52 +02:00
Leandro Regueiro
35ba2bbcf2 l10n: Updated Galician (gl) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-12 16:50:07 +02:00
Leandro Regueiro
28a7345655 l10n: Updated Galician (gl) translation to 93%
New status: 42 messages complete with 0 fuzzies and 3 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-12 16:49:36 +02:00
Masato Hashimoto
7d0dd76402 l10n: Updated Japanese (ja) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-12 14:15:19 +02:00
Bauzhan Muftakhidinov
f2cbcb7e78 l10n: Updated Kazakh (kk) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-12 05:15:48 +02:00
Harald Servat
2e87429aa0 l10n: Updated Catalan (Valencian) (ca) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-11 18:43:34 +02:00
Harald Servat
673991dcf7 l10n: Updated Catalan (Valencian) (ca) translation to 97%
New status: 44 messages complete with 1 fuzzy and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-11 18:43:07 +02:00
Evaggelos Balaskas
ecc0f625f3 l10n: Updated Greek (el) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-11 18:41:06 +02:00
Aleksandr Ponomarenko
a989f9f61b l10n: Updated Russian (ru) translation to 95%
New status: 43 messages complete with 2 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-11 11:12:01 +02:00
Aleksandr Ponomarenko
21e8a9340e l10n: Updated Russian (ru) translation to 46%
New status: 21 messages complete with 6 fuzzies and 18 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-11 11:04:16 +02:00
Xu Meihong
a83a6ca03d l10n: Updated Chinese (China) (zh_CN) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-11 05:57:33 +02:00
Bauzhan Muftakhidinov
41fe02a26e l10n: Updated Kazakh (kk) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-11 03:52:28 +02:00
Bauzhan Muftakhidinov
761e3c5933 l10n: Updated Kazakh (kk) translation to 80%
New status: 36 messages complete with 9 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-11 03:50:49 +02:00
Mike Massonnet
a60c2f4781 l10n: Updated French (fr) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-11 01:18:06 +02:00
Mike Massonnet
1b43fc17f4 bump post release 2010-05-11 00:46:47 +02:00
Mike Massonnet
137748a486 === Release 0.5.90 (1.0.0 beta1) === 2010-05-11 00:25:07 +02:00
Paul Seyfert
7a4ae78cb0 l10n: Updated German (de) translation to 44%
New status: 20 messages complete with 13 fuzzies and 12 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-10 23:50:12 +02:00
Paul Seyfert
5ec03ad754 l10n: Updated German (de) translation to 44%
New status: 20 messages complete with 13 fuzzies and 12 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-10 23:49:27 +02:00
Per Kongstad
42d2724957 l10n: Updated Danish (da) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-10 23:23:10 +02:00
Per Kongstad
51d384be29 l10n: Updated Danish (da) translation to 97%
New status: 44 messages complete with 1 fuzzy and 0 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-10 23:22:56 +02:00
Per Kongstad
9e6494f734 l10n: Updated Danish (da) translation to 86%
New status: 39 messages complete with 5 fuzzies and 1 untranslated.

Transmitted-via: Transifex (translations.xfce.org).
2010-05-10 23:22:27 +02:00
Mike Massonnet
f1cf49495d Updated desktop file comment 2010-05-10 23:05:47 +02:00
Mike Massonnet
f6f0ee7fbc Update po files 2010-05-10 22:32:22 +02:00
Mike Massonnet
8dd82ed6a8 Prepare build-env for first beta 2010-05-10 22:22:51 +02:00
Mike Massonnet
a21b1bfca8 Ask for confirmation to terminate/kill a task 2010-05-10 22:22:39 +02:00
Mike Massonnet
7239d4bbb0 Display memory values < 1 MiB
Fixed the MB “typo” and show values for memory in KiB or B if needed.
The threshold for displaying KiB (< 4 MiB) or B (< 9 KiB) are based on
impulse.
2010-05-10 17:57:51 +02:00
Mike Massonnet
9a6cdd2ff3 Filter tree view with show-all-processes
Switched the get_hostname() get_owner_uid() public in task-manager.c,
the owner uid is needed in the tree view class in order to filter out
user processes from others.
2010-05-10 17:03:27 +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
1788e3c220 Implement new function pid_is_sleeping()
The function pid_is_sleeping() is implement by the different OS
implementations and returns TRUE or FALSE. It is used in the tree view
context menu to show either the signal Stop or Continue.
2010-05-09 01:34:56 +02:00
Mike Massonnet
07131a81b3 Context menu for sending signals and setting priorities
Base signals and priorities are defined inside the task-manager.h file
to be reused as general values inside the interface. The different OS
implementations have to do the conversion from the enumeration to real
values.
2010-05-09 00:51:46 +02:00
Mike Massonnet
e524915ac7 Several micro fixes on the Linux implementation
Fix one segfault where some processes like “ls” live very briefly and
those may be catched up but at the time to read the cmdline the process
tree already disappeared. Also terminate the cmdline with \0.

I ran the application on my netbook, which doesn't have /proc/<PID>/comm
files... The code has been updated to read the short command from the
buffer.
2010-05-08 14:49:12 +02:00
Mike Massonnet
a7465b61f4 Fix for scanf failing at parsing process names with spaces
The code still uses scanf to parse the stat file, but the process name
is being cleansed so that it never fails. The name is read from the
“comm” file. It is still a truncated version of the name, and will
likely remain for very long like this. There is one solution, but since
the name isn't currently used inside the interface there is no point
wasting time.
2010-05-08 00:10:22 +02:00
Mike Massonnet
553be8eee1 Temporary “fix” of a nasty segfault
On the Linux implementation, when a process name has a space in it the
sscanf function is unable to parse the line properly. This will have to
be changed, but in the meantime ignore such processes and avoid the
segfault, there are going to be Beta releases.
2010-05-07 21:52:46 +02:00
Mike Massonnet
239c5d5064 Enhance performance by updating the GtkTreeModel inside the TaskManager
The code to update the model has been moved inside the XtmTaskManager
class and this in order to enhance performance. In fact all the rows of
the model were udpdated everytime (150~ processes × 9 columns calls on
gtk_list_store_set per seconds) which represented a big CPU hog. Now
that the model is being updated within the same class that pulls the
processes information it is possible to run low check routines and
update only the rows that have updated information.

Also big surprise, the new tasks weren't added, well they did but not
the right data. The pointer's location was copied instead of the
pointer's content.
2010-05-07 21:52:33 +02:00
Mike Massonnet
2506eb50d8 Typo, that's why I hate commit and pushing right behind 2010-05-05 18:02:35 +02:00