Commit Graph

29 Commits

Author SHA1 Message Date
Mike Massonnet
20dbcee075 Add right click menu on status icon with a Quit item 2010-06-10 02:52:32 +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
568fc7f148 Update status icon tooltip only if visible 2010-06-02 19:34:55 +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
20d95b74db Set localized name of application 2010-05-30 23:31:31 +02:00
Mike Massonnet
9e3eb2d07a Fix cformat parameters for status icon 2010-05-29 18:01:18 +02:00
Mike Massonnet
e7fe287e19 Show tooltip with system information on status icon 2010-05-24 02:25:04 +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
9a26498a8b Implement option “Full command line” 2010-05-23 13:08:45 +02:00
Mike Massonnet
f5e7344a8b Implement option “More precision” 2010-05-23 00:47:02 +02:00
Mike Massonnet
286f561088 Implement option “Refresh rate” 2010-05-22 22:45: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
239c5d5064 Enhance performance by updating the GtkTreeModel inside the TaskManager
The code to update the model has been moved inside the XtmTaskManager
class and this in order to enhance performance. In fact all the rows of
the model were udpdated everytime (150~ processes × 9 columns calls on
gtk_list_store_set per seconds) which represented a big CPU hog. Now
that the model is being updated within the same class that pulls the
processes information it is possible to run low check routines and
update only the rows that have updated information.

Also big surprise, the new tasks weren't added, well they did but not
the right data. The pointer's location was copied instead of the
pointer's content.
2010-05-07 21:52:33 +02:00
Mike Massonnet
a02bf69573 Show list of tasks
Provide the list of tasks through a GArray and parse it in main.c to
update the GtkTreeModel.
2010-05-05 09:02:04 +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
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
Nick Schermer
b452b402fe Apply patch from Álvaro Lopes to fix CPU usage per task, with more then 1 CPU.
Added a THANKS file.
Remove some svn executable properties and add svn keywords.
Added LINGUAS support and removed the configure.ac > configure.in.in file.
Improved the configure.in.in and Makefiles.


(Old svn revision: 2350)
2007-01-13 10:12:31 +00:00
Johannes Zellner
add5476550 * new design with processinfo-grabbing
* config-file support
 


(Old svn revision: 1462)
2006-06-28 18:27:58 +00:00
Johannes Zellner
c35b22a11e cleanups
(Old svn revision: 1418)
2006-05-19 14:07:41 +00:00
Johannes Zellner
da93cc9ce7 - moved some functions to where they belong to
- renamed many things.
- code-cleanups



(Old svn revision: 1386)
2006-05-08 20:55:37 +00:00
Johannes Zellner
255757695a Hey I'm active! :-)
This is the initial commit for the 0.4.0 xfce4-taskmanager.

New Things:
  - now you have a configuration-file
  - views are saved and restored
  - task SleepAverage display
  - few bugfixes



(Old svn revision: 1262)
2006-03-28 12:22:19 +00:00
Johannes Zellner
f5646a5538 (Old svn revision: 776) 2005-09-07 04:36:02 +00:00
Johannes Zellner
32efbc9bbe *** empty log message ***
(Old svn revision: 535)
2005-02-11 10:26:29 +00:00
Johannes Zellner
12f8223970 *** empty log message ***
(Old svn revision: 527)
2005-01-31 08:37:38 +00:00