Commit Graph

126 Commits

Author SHA1 Message Date
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
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
30e3592e1d Replace progress bars with monitors 2010-06-13 16:17:29 +02:00
Mike Massonnet
f66c0e8fd6 Hide window on window close when the status icon is visible 2010-06-10 02:52:32 +02:00
Mike Massonnet
81bdc6d2ba Fix compiler warnings (original patches from Enrico Tröger)
Add missing include for geteuid() missing declaration
xtm_process_window_show_swap_usage() in process-window.
Fix various compiler warnings from main.c task-manager.c and
app-manager.c.
2010-06-08 22:41:50 +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
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
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
1b6a226a81 Display only installed programs in the “Execute” menu 2010-05-24 22:39:19 +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
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
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
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
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
71d1684696 Add precision to memory/swap and CPU
Switched all the gushort against gfloat data types for the memory, swap
and CPU usages. Show them with a precision of two decimals in the GUI.
2010-05-02 17:03:58 +02:00
Mike Massonnet
4f04ca5cb7 Read information from memory/swap and CPU
This commit is the second of an incremental serie. There will be other
commits with the information about tasks and the support for BSD and
Solaris once things are settled.

The TaskManager class is build with a new source task-manager-linux.c
that provides functions specific to the Linux implementation. It has
functions to read the usage of the memory/swap and the CPU.
2010-05-02 17:00:30 +02:00
Mike Massonnet
9a49bf015a Initial TaskManager class and make room for Swap
Added the TaskManager class to hold system information and tasks.
Currently it provides username and hostname based on POSIX functions.
The Swap is now part of the system information and is being displayed in
the statusbar.
2010-05-02 17:00:30 +02:00
Mike Massonnet
fdaf8b1b49 Rename “Information” to “Preferences” 2010-05-02 17:00:30 +02:00
Mike Massonnet
b83eb75002 Custom statusbar
The statusbar is created since a separate widget class and has three
different labels (settable through properties) for CPU, memory and
number of processes. This makes it more convenient to change one or
another value and it gives a nicer look.
2010-05-02 17:00:24 +02:00
Mike Massonnet
cc6dbd8373 Initial commit of new interface
Changes touching the build:
- Bumped version to 0.5.0.
- Removed dependency on Xfce libs (it only depends on GTK+-2.0.)
- Updated Makefile with new source files.
- Build ChangeLog through a script (remove it from source tree.)

More generally speaking, the interface is build on top of a GtkBuilder
UI definition, with a personal GtkTreeView and a Settings GObject to
update the information shown on the interface on changes. All the code
is being written with GObjects which will make it a lot easier to
separate GUI code and system code.
2010-05-01 15:34:25 +02:00