Commit Graph

309 Commits

Author SHA1 Message Date
Peter de Ridder
c8f6a2ed95 Auto expand the process tree. 2014-12-07 11:41:15 +01:00
Landry Breuil
2c18cb26f1 put the 'Show memory usage in bytes' checkbox in the UI settings 2014-12-07 11:38:47 +01:00
Peter de Ridder
d3800112a3 Use the correct model on right click. 2014-12-04 22:32:56 +01:00
Landry Breuil
32443defff Merge branch 'peter/tree-model' 2014-12-04 20:57:16 +01:00
Landry Breuil
c6c74cd959 Display the memory usage as bytes instead of a percentage when show-memory-in-xbytes is set (#6503)
- move the percentage calculation to init_timeout(), use g_format_size() here too
- carry memory/swap used vs total all around
- make the XtmProcessStatusbar swap and memory properties strings instead of float

Based on a diff from  Ján Sucan, thanks!

Note to translators: this changes some strings, mostly removing % in format printing
2014-12-04 20:52:12 +01:00
Landry Breuil
7e7521cf2f connect the notify::show-memory-in-xbytes signal to a force_timeout_update() call 2014-12-04 20:40:46 +01:00
Landry Breuil
76dd1025e9 Remove memory_human_size and use g_format_size instead 2014-12-04 20:39:26 +01:00
Landry Breuil
589ea153cf Add a show-memory-in-xbytes checkbox and its corresponding property 2014-12-04 20:37:31 +01:00
Landry Breuil
a554ff2e8b Repair memory and swap size calculation on OpenBSD. 2014-12-04 20:35:17 +01:00
Landry Breuil
96ee31879b uninitialized variable in solaris backend 2014-12-04 20:35:06 +01:00
Peter de Ridder
dbd10ae655 Added the process tree to the settings. 2014-12-03 23:21:18 +01:00
Peter de Ridder
2a81817868 Sort the tree according to the list model. 2014-12-03 23:21:18 +01:00
Peter de Ridder
80feabede2 Added tree model process view.
This model builds a tree model out of a list model.
2014-12-03 23:21:18 +01:00
Harald Judt
afb2ad8b8a Use modern AM_CPPFLAGS instead of old INCLUDES 2014-12-03 19:05:12 +01:00
Landry Breuil
69f56371ba Silently and gracefully handle the case when a process disappears before we try to get its argv 2014-12-03 18:30:34 +01:00
Landry Breuil
2392f5328f GApplication appeared in glib/gio 2.28, protect those codepaths with GLIB_CHECK_VERSION(2, 28, 0) 2014-12-03 17:51:44 +01:00
Landry Breuil
97f974f7a8 Use a gint since fgetc returns an int. (#10417)
Should fix a warning on arm, and maybe other issues there..
2014-12-03 17:26:42 +01:00
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