Commit Graph

370 Commits

Author SHA1 Message Date
Simon Steinbeiss
ea0fb09b48 Drop superfluous check for gtk_main_level 2020-04-11 00:58:10 +02:00
Simon Steinbeiss
cded20db98 Fix previous commit 2020-04-11 00:28:28 +02:00
Andre Miranda
6c78030661 Fix closing taskman with Esc (Bug #16656) 2020-04-11 00:09:17 +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
4205a84e34 Update copyright. 2019-03-26 07:56:58 +01:00
Mikhail Efremov
c6e33f3048 Fix mem size calculation once more
A terminating null byte should be moved too.
Fixes commit b4266a20f8.
2018-12-11 18:43:21 +01:00
Landry Breuil
43e1e0db95 Remove g_object_unref() calls at the end of main
They trigger SIGBUS upon exit on OpenBSD (a sign of double-free?) and valgrind
complains loudly about them on Linux.
2018-12-10 08:01:56 +01:00
Landry Breuil
203514ff96 add proper casts around gsize calculation 2018-12-10 08:01:33 +01:00
rim
b4266a20f8 Make valngrind happy: correct calculate mem size to move 2018-12-10 07:58:01 +01:00
rim
b89684865d Better utf-8 normalization (bug 14172) 2018-08-02 08:47:51 +02:00
rim
af078d406a Improve app search on close (bug 14466) 2018-06-22 11:41:59 +02:00
Landry Breuil
13c78d9738 Rework configure logic to build with Gtk+3 by default
Use --enable-gtk2 if you still want to build with the older toolkit, but
the corresponding code might go away at some point....
2018-06-03 18:29:53 +02:00
Landry Breuil
993ef78b81 Switch back all bzero() calls to use memset()
Even if it's uglier to use memset, bzero seems deprecated.
2018-06-03 17:56:31 +02:00
Landry Breuil
fcf8beb64e include task-manager.h to have __unused definition, should fix compilation on linux (bug 14401) 2018-06-01 13:05:19 +02:00
rim
84e719796e Simplify the way process state is stored on FreeBSD (bug 14401) 2018-05-30 21:59:02 +02:00
rim
6cfb7547b0 More cast/type fixes (bug 14401) 2018-05-30 21:58:08 +02:00
rim
f51c2b18f7 Rework the way model is iterated through (bug 14401) 2018-05-30 21:56:48 +02:00
rim
3d7f9fd794 parenthesis around addition (bug 14401) 2018-05-30 21:53:33 +02:00
rim
01abcbdd73 Properly bzero args (bug 14401) 2018-05-30 21:52:10 +02:00
rim
bbee897079 use a 1k buffer for the initial argv malloc (bug 14401) 2018-05-30 21:51:50 +02:00
rim
ccb9824ce2 Select_Window returns a static Window (bug 14401) 2018-05-30 21:50:59 +02:00
rim
295e635606 Fix useless indentation (bug 14401) 2018-05-30 21:50:17 +02:00
rim
7de82ec291 Better zeroing of found struct (bug 14401) 2018-05-30 21:49:22 +02:00
rim
ce69b96ce4 spacing 2018-05-30 21:48:41 +02:00
rim
e8b4fa49bb xtm_process_tree_model_get_value returns void (bug 14401) 2018-05-30 21:47:59 +02:00
rim
9ed5f79f8d More float initializers (bug 14401) 2018-05-30 21:47:24 +02:00
rim
1c09b7329b Use the proper types, add casts where necessary (bug 14401) 2018-05-30 21:46:29 +02:00
rim
512e88ad6c timeout is an unsigned integer (bug 14401) 2018-05-30 21:43:08 +02:00
rim
a5f4aaa667 Improve GOptionEntry initialization (bug 14401) 2018-05-30 21:42:04 +02:00
rim
0111851b4d Stop displaying 'Running as <uid> on <hostname>' and remove corresponding code (bug 14401) 2018-05-30 21:31:52 +02:00
rim
8e1b48f8de Move getpwuid() from backends to gui, use getpwuid_r(), call only once on task add. (bug 14401) 2018-05-30 21:31:01 +02:00
rim
40a3e65803 Fix possible file descriptor leak on linux (bug 14401) 2018-05-30 21:30:19 +02:00
rim
66a0d4bfc9 Mark unused params, remove unused macro and args (bug 14401) 2018-05-30 21:29:28 +02:00
rim
ceb5a7d347 Make pid type: GPid (bug 14401) 2018-05-30 21:28:35 +02:00
Ben Burrill
397bb63e23 Improvements to --start-hidden (bug 14343)
* Prints an explanatory warning message when both the window and the
  status icon can't be shown (because --start-hidden is used and "Hide
  into the notification area" is disabled) rather than just exiting.
* Fixes a bug where when the task manager is already running,
  --start-hidden would erroneously activate it.
* Use return instead of exit.  I adopted exit from the gnome docs, but I
  think return makes more sense here.
2018-05-28 22:35:05 +02:00
Ben Burrill
5fdfe369a6 Add --start-hidden command-line option (bug 14343)
When --start-hidden is used, the primary interface is not shown.  If the
"Hide into the notification area" option is enabled, the notification
icon will shown.  Otherwise, the task manager will immediately quit
(running completely in the background would be pointless).
2018-05-28 21:16:21 +02:00
Landry Breuil
c507f13d86 declarations at the beginning of functions (ISO C90 forbids mixed declarations and code) 2018-05-28 21:06:39 +02:00
rim
8d4f013877 Simplify WNCK #ifdefs 2018-05-28 21:05:17 +02:00
Landry Breuil
6f9d95d1f5 declarations at the beginning of functions (ISO C90 forbids mixed declarations and code) 2018-05-28 21:04:45 +02:00
rim
621de4fd13 app-manager optimizations
- simplify lookup by pid
- less calls to wnck_window_get_pid
- use a gint for the pid
2018-05-28 21:00:30 +02:00
Rozhuk Ivan
fd9e313e2e Make sure only printable characters are used in the pretty cmdline display (bug 14172) 2018-05-27 12:00:01 +02:00
Rozhuk Ivan
fd149b63df Rework the way the model is updated (bug 14403)
- Do more lazy updates
- More robust to quick process creation/deletion
- Use bsearch to look in the sorted list of processes.

Should consume less resources..
2018-05-27 11:35:00 +02:00
rim
f27d270f0c Check that treeview isnt NULL in cb_send_signal (bug 14403) 2018-05-27 11:06:32 +02:00
rim
a76b13057c Use sizeof in get_hostname (bug 14401) 2018-05-27 11:04:42 +02:00
rim
3af7e3d491 Use sysctl w/ KERN_PROC_ARGS instead of kvm_getargv in get_task_details() (bug 14401) 2018-05-26 23:55:49 +02:00
Landry Breuil
159c3c1d0c Sort the task list by pid, as we're going to use bsearch() (bug 14403) 2018-05-26 23:52:46 +02:00
rim
704411a38b Properly use float for constants where appropriate (bug 14401, bug 14403) 2018-05-26 23:51:32 +02:00
rim
4d4d0b5073 Add a function comparing tasks (bug 14403) 2018-05-26 23:48:46 +02:00
rim
2329f243fb Properly zero memory where appropriate (bug 14401, bug 14403) 2018-05-26 23:40:11 +02:00