Commit Graph

47 Commits

Author SHA1 Message Date
Simon Steinbeiss
8b45017642 Draw CPU and Mem graph in different colors 2014-12-18 11:04:47 +01:00
Simon Steinbeiss
3486d3fab1 Rearrange the UI to resemble top
Moved the graphs below the toolbar and made them taller, so that they
are more readable/usable. Converted the statusbar into a box, moved it
below the graphs and rearranged the content to match the graphs.
2014-12-17 22:50:41 +01:00
Simon Steinbeiss
e8c8dff357 Drop paint-box option 2014-12-17 10:43:56 +01:00
Landry Breuil
f3149fa2c1 include the gtk3 generated ui file when building against gtk3. This way both flavors build 2014-12-11 23:30:29 +01:00
Landry Breuil
1e1ee4c0f9 icon-name property was deprecated in gtk3 2014-12-11 22:57:07 +01:00
Landry Breuil
dab45b288a GTK_WIDGET_SET_FLAGS seems to be gtk2 only 2014-12-08 22:38:41 +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
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
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
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
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
e97c14fa68 Implement option "Draw borders around monitors" 2010-09-26 09:47:48 +00:00
Mike Massonnet
a804339c7d Remove quit tool button 2010-09-25 21:17:48 +00: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
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