Simon Steinbeiss
c1de490489
Tone down the colors in the treeview
2014-12-18 13:28:04 +01:00
Simon Steinbeiss
e97b77ee62
Make CPU and Mem labels use the graph colors
2014-12-18 11:05:16 +01:00
Simon Steinbeiss
8b45017642
Draw CPU and Mem graph in different colors
2014-12-18 11:04:47 +01:00
Simon Steinbeiss
aef4bb4590
Pack the searchbox into the toolbar
2014-12-18 08:47:11 +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
Peter de Ridder
12bf2c96b0
Use a proper draw callback passing a cairo_t context to xtm_process_monitor_paint
2014-12-17 22:18:32 +01:00
Landry Breuil
92b48c3d5d
Reuse the same WNCK autoconf/automake macro, makes window icons working again with gtk3
2014-12-17 21:43:44 +01:00
Landry Breuil
54679d82d9
Fix previous, use a GtkVBox when there's an orientation property set to vertical
2014-12-17 21:03:53 +01:00
Landry Breuil
2d5c5972b7
remove useless NULL= declaration
2014-12-17 21:03:44 +01:00
Landry Breuil
6233f9f138
Merge remote-tracking branch 'ochosi/fix_gtk3'
2014-12-17 20:49:45 +01:00
Simon Steinbeiss
e8c8dff357
Drop paint-box option
2014-12-17 10:43:56 +01:00
Simon Steinbeiss
abb5f97740
Hardcode the graph colors and simplify the drawing routines
2014-12-17 10:38:32 +01:00
Simon Steinbeiss
aadc7908e6
Fix gtk2 settings dialog
2014-12-17 10:25:59 +01:00
Peter de Ridder
aa5da32243
Use the correct parent to test for first child
2014-12-16 22:16:50 +01:00
Peter de Ridder
20b1b04a22
Increment the link->path as directly after insert
2014-12-15 21:05:17 +01:00
Landry Breuil
cae969b2df
Silence warnings.
...
- statement with no effect
- index is an indentifier in string.h, dont shadow it
- link is a function in unistd.h dont shadow it
2014-12-11 23:37:38 +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
21bf64ee92
use #ifdef instead of #if to avoid warnings with gtk2
2014-12-11 23:29:57 +01:00
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
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