Commit Graph

442 Commits

Author SHA1 Message Date
Landry Breuil
03a86667d3 Implement basic unique app behaviour via GApplication. (#8808)
Requires GIO 2.28, checks for it will be added later.
2014-12-03 10:26:21 +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
Landry Breuil
66c00f1871 the "changed" callback should return void (#9856) 2014-12-03 09:16:24 +01:00
Harald Judt
0b1014f8f9 Make Escape key close the main window
This patch makes pressing the Escape key have the same effect as
clicking the close window button.
2014-12-01 10:30:04 +01:00
Landry Breuil
38d511465d Default the focus on the process list instead of the exec button (#10643) 2014-12-01 10:28:05 +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
Landry Breuil
e1e8ceb7b3 fix indentation in previous (tabs vs spaces) 2014-12-01 09:53:40 +01:00
Landry Breuil
ff69f4d3b3 filter_entry_keyrelease_handler() is supposed to return a gboolean, make it return has_text 2014-12-01 09:49:51 +01:00
Matias De lellis
9ca4c078c6 Add filter entry to search especific command lines. (#9856) 2014-12-01 09:46:52 +01:00
Landry Breuil
7c67014733 uninitialized variable; cppcheck 2014-11-30 21:48:21 +01:00
Landry Breuil
095098f87b please cppcheck, check for i < N_COLUMNS before using i to access the array (#10664) 2014-11-30 21:48:02 +01:00
Cy Shubert
994e0c2b9f Include <sys/vmmeter.h> on FreeBSD (#8081) 2014-11-29 12:10:49 +01:00
Landry Breuil
59ed589b26 Use g_strlcpy() instead of g_snprintf(dest, strlen(dest), "%s", src)
Fixes a SIGABRT at startup on OpenBSD, for some reason deep in the glib/libc
stack the va_list arg p is lost.. g_strlcpy() is equivalent here, and even faster.
2014-11-29 11:48:38 +01:00
Landry Breuil
92675eba53 Use g_utf8_strlen(text, -1) to check for text length, not sizeof(text) which is the size of a pointer and always > 3 2014-11-29 11:41:58 +01:00
Alistair Buxton
18311141d0 Fix the refresh rate menu
1. Make all of the items into radio items, not just the one for
   the current refresh rate.

2. Add all the items into a group, so that only one can be checked.

3. Only fire the signal handler when the item is activated, not
   when it is deactivated.
2014-11-29 11:10:08 +01:00
Landry Breuil
bf7ad9f99e include <sys/vmmeter.h> for struct vmtotal, probably needed on NetBSD 2014-11-29 10:33:49 +01:00
Martin Pieuchot
9d85be6016 On OpenBSD, prefer the UVM way to the vmmeter one to get memory stats. 2014-11-29 10:33:10 +01:00
Landry Breuil
e293a72e0f Include <sys/proc.h> for P_ZOMBIE & SSLEEP macros definition. 2014-01-09 22:10:09 +01:00
Nick Schermer
b367fdd1a9 Fix compiler warnings. 2014-01-08 19:35:17 +01:00
Landry Breuil
0984dd8aa3 OpemBSD removed KERN_PROC2/KINFO_PROC2 some months ago, do the #ifdef dance
Effectively merges http://www.openbsd.org/cgi-bin/cvsweb/ports/x11/xfce4/xfce4-taskmanager/patches/patch-src_task-manager-bsd_c?rev=1.1
Keep the old code for NetBSD/DragonflyBSD.
2012-04-23 10:47:49 +02:00
Jannis Pohlmann
0ff08c3a95 Fix old-style function declarations. 2011-05-25 17:57:43 +02:00
Mike Massonnet
ac98f4d89d Unselect row when sending TERMINATE/KILL signal 2010-12-05 08:48:07 +01:00
Mike Massonnet
94f0831174 Only display "Show application icons" when built with WNCK 2010-10-10 00:13:31 +02:00
Mike Massonnet
103189819c Fix previous commit: use existing callback settings_changed
Drop cb_show_application_icons_toggled and move the code inside
the existing callback settings_changed.
2010-10-04 20:42:39 +02:00
Mike Massonnet
36ccc36bb7 Implement option "Show application icons" 2010-10-04 19:54:44 +02:00
Mike Massonnet
f59f68001f Hide "Information" options from settings dialog
The settings refresh-rate and columns are set through the
settings tool button and implementing them inside the
settings dialog is a useless headache. They are therefore
made temporarily invisible. The solution will be to use
Gtk/Exo bindings.
2010-10-01 22:38:41 +02:00
Mike Massonnet
7998ed4b66 Drop Private struct from XtmProcessWindow 2010-09-29 16:50:27 +02:00
Mike Massonnet
95c3ef3246 Implement option "Toolbar style" 2010-09-29 16:40:30 +02:00
Mike Massonnet
8d594e0878 Revert commit 5eaf309: Reorder signals on treeview right click 2010-09-27 15:58:16 +00:00
Mike Massonnet
39e08fb60e Implement option "Prompt for terminating tasks" 2010-09-27 14:57:22 +00:00
Mike Massonnet
e97c14fa68 Implement option "Draw borders around monitors" 2010-09-26 09:47:48 +00:00
Mike Massonnet
bfd7faf7c7 Use gtk-execute icon name for runner program 2010-09-26 08:42:27 +00:00
Mike Massonnet
a804339c7d Remove quit tool button 2010-09-25 21:17:48 +00:00
Mike Massonnet
622c4763ce Drop orphan liststore from settings-dialog.ui 2010-09-12 21:48:29 +02: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
4fc28e6b8b Put "Settings" items within a sub-classed GtkMenuToolButton
New class XtmSettingsToolButton that replaces the old GtkToolButton for
the settings menu.
2010-08-04 19:39:08 +02:00
Mike Massonnet
b4d453b526 Put "Execute" items within a sub-classed GtkMenuToolButton
New class XtmExecToolButton that replaces the old GtkToolButton for the
execution menu.

The toolbar style is set to the default behavior (no forced labels).
2010-08-03 22:40:35 +02:00
Mike Massonnet
67267e606d Set monitor's background box use the prelight state
Most GTK+ themes have the same colors for normal and prelight, but some
use a lighter version which makes the box look more distinguishable.
2010-06-21 12:28:28 +02:00
Mike Massonnet
6d9ee4c86e Set "Run Task Manager as root" translatable 2010-06-21 12:28:28 +02:00
Mike Massonnet
75cc0da254 Add a menu position function 2010-06-19 19:35:18 +02:00
Mike Massonnet
d70a495618 Add "Run Task Manager as root" item in "Execute" menu 2010-06-19 19:35:18 +02:00
Mike Massonnet
f7e66d716d Remove shadow type around tree view 2010-06-19 19:35:17 +02:00
Mike Massonnet
726f2aa103 Remove border width around tree view 2010-06-16 11:43:29 +02:00
Mike Massonnet
9d8b776288 Fix SIGBUS on Debian x86_64 (original patch from Jérôme Guelfucci)
Something strange happened when doing a comparison between a guint type
and sizeof(), turning it back to gint fixes the issue. Fix other
compiler warnings at the same time.
2010-06-13 19:31:22 +02:00
Mike Massonnet
d40bd9362a Don't make redundant messages for translators 2010-06-13 18:00:29 +02:00
Mike Massonnet
e8b49da6e7 Remove the 250ms refresh rate
At this refresh rate the application occupies too many CPU cycles and
this is totally beside the point.
2010-06-13 17:45:04 +02:00
Mike Massonnet
2a858e2acd Always paint the last monitor peak
Round the minimum history length and always paint the last peak even if
it doesn't fit entirely. This change was needed because visible with
some refresh rates.
2010-06-13 17:33:25 +02:00
Mike Massonnet
30e3592e1d Replace progress bars with monitors 2010-06-13 16:17:29 +02:00
Mike Massonnet
5eec456b9b Display tree view context menu on Menu key press 2010-06-10 02:52:32 +02:00
Mike Massonnet
20dbcee075 Add right click menu on status icon with a Quit item 2010-06-10 02:52:32 +02:00