Commit Graph

235 Commits

Author SHA1 Message Date
Landry Breuil
4d6fb822be Add automake plumbing to generate both gtk2 and gtk3 ui files in maintainer mode.
- add the resulting files to BUILT_SOURCES & xfce4_taskmanager_SOURCES
- add the gtk3 ui files to EXTRA_DIST
2014-12-11 23:28:19 +01:00
Landry Breuil
3f02cc46d7 Restore gtk2 versions of the gtkbuilder ui files 2014-12-11 23:27:53 +01:00
Landry Breuil
d8404b3021 Rename gtkbuilder files with a -gtk3 suffix for clarity 2014-12-11 23:27:19 +01:00
Landry Breuil
1e1ee4c0f9 icon-name property was deprecated in gtk3 2014-12-11 22:57:07 +01:00
Landry Breuil
f721131703 use gtk_tool_button_set_icon_name() instead of gtk_tool_button_set_stock_id() 2014-12-11 22:52:35 +01:00
Landry Breuil
f7dc12a375 use a plain GtkBox for the statusbar 2014-12-11 22:44:12 +01:00
Landry Breuil
f33f64410f use gtk_tool_button_set_icon_name() instead of gtk_tool_button_set_stock_id() 2014-12-11 22:43:40 +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