Commit Graph

26 Commits

Author SHA1 Message Date
Mike Massonnet
ac98f4d89d Unselect row when sending TERMINATE/KILL signal 2010-12-05 08:48:07 +01: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
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
5eec456b9b Display tree view context menu on Menu key press 2010-06-10 02:52:32 +02:00
Mike Massonnet
2f995e8226 Display window icons/names
Add optional link on libwnck (default=yes) and build a new object from
app-manager.c to keep an up to date list of applications with their name
and icon. Use it inside the task manager object to display inside the
tree view.
2010-06-04 15:31:45 +02:00
Mike Massonnet
f96123a530 Sort on first click in descending order 2010-06-02 02:53:17 +02:00
Mike Massonnet
4d20ea95c5 Center dialogs on mouse cursor 2010-06-02 02:47:18 +02:00
Mike Massonnet
9238d67f9a Avoid saving columns positions when closing application
When the application was closed, the columns-changed signal was
triggered everytime a tree view column was destroyed/removed from the
tree view (think dispose), and this was bad since the columns positions
may have been saved as a succession of zeros. Avoid this.
2010-06-02 02:16:01 +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
58b85e2a73 Get the tree view columns reorderable
The tree view columns can be reordered, the state will be saved in the
configuration and reloaded at next start.
2010-05-27 23:57:08 +02:00
Mike Massonnet
e3d3aa2e18 Show started tasks with a green background 2010-05-26 22:35:34 +02:00
Mike Massonnet
1974a2fbcd Make SearchFunc for tree view case insensitive 2010-05-26 15:01:53 +02:00
Mike Massonnet
322b9978df Use a personal SearchFunc for the tree view
Use the function strstr to find matches inside the command line, and not
only starting with. Browsing through matches can be done by typing the
arrows down and up.
2010-05-26 12:08:07 +02:00
Mike Massonnet
5eaf309cfd Reorder signals on treeview right click
Show Terminate after Stop and Kill.
2010-05-23 20:00:13 +02:00
Mike Massonnet
ee0e367f07 Fix bug retrieving bad PID from treeview
Use the model_filter to retrieve the correct selected path and therefore
the right PID.
2010-05-21 16:08:10 +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
8dd82ed6a8 Prepare build-env for first beta 2010-05-10 22:22:51 +02:00
Mike Massonnet
a21b1bfca8 Ask for confirmation to terminate/kill a task 2010-05-10 22:22:39 +02:00
Mike Massonnet
9a6cdd2ff3 Filter tree view with show-all-processes
Switched the get_hostname() get_owner_uid() public in task-manager.c,
the owner uid is needed in the tree view class in order to filter out
user processes from others.
2010-05-10 17:03:27 +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
1788e3c220 Implement new function pid_is_sleeping()
The function pid_is_sleeping() is implement by the different OS
implementations and returns TRUE or FALSE. It is used in the tree view
context menu to show either the signal Stop or Continue.
2010-05-09 01:34:56 +02:00
Mike Massonnet
07131a81b3 Context menu for sending signals and setting priorities
Base signals and priorities are defined inside the task-manager.h file
to be reused as general values inside the interface. The different OS
implementations have to do the conversion from the enumeration to real
values.
2010-05-09 00:51:46 +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
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