Peter de Ridder
9d3fa97f73
Changed has children toggle signal to support auto expand.
2014-12-11 21:56:58 +01:00
Landry Breuil
9e0dde7a47
save process-window.ui with glade 3
2014-12-11 19:10:47 +01:00
Landry Breuil
cc3013455b
Save GtkBuilder file with glade 3, allows to display the settings dialog without crashing.
2014-12-11 19:09:09 +01:00
Landry Breuil
177914f858
Convert GtkBuilder files to gtk3
...
- replace GtkHBox/VBox by plain GtkBox
- replace GtkHSeparator/VSeparator by plain GtkSeparator
- replace GtkHButtonBox by GtkButtonBox
2014-12-11 19:07:02 +01:00
Landry Breuil
c90a0ac966
use GDK_KEY_Menu instead of the deprecated GDK_Menu via gdkkeysyms-compat.h
2014-12-11 18:52:50 +01:00
Landry Breuil
16722479ab
no need for HAVE_GTK3 when you already check for GTK_CHECK_VERSION(2, 24, 1)
2014-12-11 18:19:29 +01:00
Landry Breuil
23c43d14ec
comment out gdk_color_parse() calls, allows taskmanager built with gtk3 to run..
2014-12-11 18:15:12 +01:00
Landry Breuil
3b11350b6a
[wip] gets taskmanager to build with Gtk3
...
- use gtk_widget_get_allocated_width/gtk_widget_get_allocated_height instead of poking at GtkAllocation internals
- use gtk_widget_get_window() instead of poking at window struct member
- correct args for gtk_paint_box/gtk_paint_shadow, probably wrong too but builds for now
2014-12-08 22:57:15 +01:00
Landry Breuil
eaa3886a5d
[wip] directly pass a hardcoded red GdkColor where gtk2 code pokes at GtkStyle internals
2014-12-08 22:56:39 +01:00
Landry Breuil
78330dbc19
expose-event was replaced by draw, assign the same callback for now (probably wrong)
2014-12-08 22:55:43 +01:00
Landry Breuil
41a9d833f0
Use gtk_widget_get_window() (appeared in Gtk 2.14) instead of poking at window struct member
2014-12-08 22:53:59 +01:00
Landry Breuil
f76b9973bd
Use gtk_check_menu_item_get_active() instead of poking directly at the active member
2014-12-08 22:47:41 +01:00
Landry Breuil
55591b17ca
GTK_WIDGET_SET_FLAGS seems to be gtk2 only
2014-12-08 22:47:27 +01:00
Landry Breuil
008bfd62a6
GtkComboBoxText appeared in gtk 2.24.1, use it if available
2014-12-08 22:46:47 +01:00
Landry Breuil
af176e4f87
gdk_spawn_command_line_on_screen() was removed, try to use g_app_info_launch()
2014-12-08 22:39:09 +01:00
Landry Breuil
dab45b288a
GTK_WIDGET_SET_FLAGS seems to be gtk2 only
2014-12-08 22:38:41 +01:00
Landry Breuil
2cf4aef9f7
include gdk/gdkkeysyms-compat.h to get GDK_Menu #define
2014-12-08 22:38:20 +01:00
Landry Breuil
28c6cea972
use gtk_widget_is_visible instead of GTK_WIDGET_VISIBLE()
2014-12-08 22:37:29 +01:00
Landry Breuil
e91f9040d1
set GTK2/GTK3/WNCK/WNCK3 LIBS/CFLAGS depending on USE_GTK3
2014-12-08 22:37:00 +01:00
Harald Judt
134e0c278f
Use g_format_size_full with G_FORMAT_SIZE_IEC_UNITS for RAM
...
This makes it more consistent with what other tools report.
2014-12-07 13:37:53 +01:00
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