Commit Graph

126 Commits

Author SHA1 Message Date
Gaël Bonithon
aaca7e94a4 Fix xfconf memory management 2024-04-09 22:53:53 +02:00
correctmost
823c74dd47 Fix search filter memory leaks 2024-03-21 22:07:55 -04:00
Gaël Bonithon
b525a85691 Fix broken "show-legend" setting sync
Fixes: bd56f2ed5e
Related: !46
2023-10-04 11:10:42 +02:00
Waldemar Zimpel
bd56f2ed5e Rounded legend icons 2023-09-16 15:07:43 +00:00
Waldemar Zimpel
250a424754 Reopen process window maximized when closed maximized 2023-09-12 21:31:42 +00:00
Gaël Bonithon
c5714580a9 Properly finalize global objects in main 2023-09-11 09:06:34 +02:00
Gaël Bonithon
30185130f2 Make libx11 optional, guard x11 code paths
It's not clear whether libwnck-based functionality will ever have a
counterpart on Wayland, so it seems pointless to replace libwnck with
libxfce4windowing at this stage.

Completes: ecd1e1a645
Related: #75, #78
2023-09-05 17:01:23 +02:00
Brian Tarricone
ecd1e1a645 Add minimal support for Wayland
This just gets it running properly, but disables features that are
difficult or impossible to do on Wayland (the window selector, and the
stuff that uses libwnck).  At least it doesn't segfault on startup
anymore.

Fixes: #73
2023-03-24 10:51:15 +00:00
Jan Ziak
baa1dbd808 Fix process filter crash caused by the use of an uninitialized variable
gtk_tree_view_get_visible_range() documentation states the following:
"Returns TRUE if valid paths were placed in start_path and end_path"

Closes: https://gitlab.xfce.org/apps/xfce4-taskmanager/-/issues/71
Fixes: 8500675125
2022-12-17 21:40:22 +00:00
Gaël Bonithon
8500675125 Stick process view at the top in the absence of user action
Until the user manually scrolls down by some means, the view remains
stuck at the top. When the view subsequently returns to this position,
it automatically sticks again, pending further user action.

Closes: #18
MR: !30
2022-12-15 21:11:11 +00:00
Alexander Schwinn
f5adf3a1cd Revert "Revert "Get rid of GtkHeaderBar""
This reverts commit b9fec9164f.

Bugfix releases are done. So as agreed, this change is
applied again.
2022-07-13 21:50:28 +02:00
Simon Steinbeiss
b9fec9164f Revert "Get rid of GtkHeaderBar"
This reverts commit fbb25a1ce6.

The rationale is that we want to do a bugfix/maintenance release and
this change targets Xfce 4.18.
2022-05-24 11:08:04 +02:00
Evangelos Foutras
fa7c8dd091 Fix bindings related to the "show-legend" setting
- Bind to xfconf so the "show-legend" setting is saved when toggled in
  the settings dialog.
- Flip the binding in xtm_process_window_init so the visibility of the
  legend is initialized from XtmSettings.
2022-05-23 11:51:18 +00:00
Alexander Schwinn
fbb25a1ce6 Get rid of GtkHeaderBar 2022-02-10 10:21:44 +00:00
Jan Ziak
c63dc99a51 Avoid grabbing the filter entry if it is not realized
gtk_widget_grab_focus() shouldn't be called on a widget that isn't
realized. gtk_widget_get_realized(window->filter_entry) will always
evaluate to FALSE at that codepoint.

Closes: https://gitlab.xfce.org/apps/xfce4-taskmanager/-/issues/40
2021-03-12 01:45:38 +01:00
Simon Steinbeiss
0ea0e8f4be Fix restoring the window size (Fixes #39) 2021-02-27 08:21:43 +01:00
Simon Steinbeiss
36e428bee4 Also include swap in the memory graph 2021-02-12 02:11:27 +01:00
Simon Steinbeiss
1dcc9e5afd Fix handling "show-legend" setting
When switching back to using the XtmSettings object this binding was
left over and only hooked up to xfconf.
2021-01-26 09:01:02 +01:00
Simon Steinbeiss
7d24873290 Handle Esc key correctly with hidden filter 2021-01-26 08:56:47 +01:00
Simon Steinbeiss
1b0aaad892 Drop unused var and sort copyright 2021-01-25 14:15:40 +01:00
Simon Steinbeiss
07dd87723b Show/hide filterbar with Ctrl+f and clear with Esc
This commit fixes #30
This commit fixes #35
2021-01-25 14:15:40 +01:00
Simon Steinbeiss
a5aeafc15f Port to xfconf
The internal XtmSettings object is retained so we don't have to refactor
everything, but the backend now uses Xfconf over the rc file.
2021-01-25 14:15:40 +01:00
Gaël Bonithon
e25b5246b2 Fix compilation warnings 2021-01-21 17:14:34 +01:00
Simon Steinbeiss
ab7a0c4e62 Hide filter entry by default 2021-01-20 08:53:11 +01:00
Simon Steinbeiss
59c0131f21 Use infobar for root warning box 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
19b888fcfe Replace fitler entry with GtkSearchBar 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
5d03025219 settings: Replace toolbar with regular GtkBox 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
10efb31f97 Switch main window to XfceTitledDialog 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
847f4a9adb Fix toolbar buttons position 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
6af11c82b7 Move about dialog to settings 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
977c2ddd10 Drop toolbar style setting 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
21b01a4404 Fix typo 2021-01-19 13:25:57 +01:00
Simon Steinbeiss
33fd387bb9 Drop exec button from toolbar 2021-01-19 13:25:57 +01:00
DanielChabrowski
16a1a9f910 Remove unused url_hook_about_dialog function 2020-07-15 03:26:59 +02:00
Andre Miranda
04407bceee Drop gtk2 support 2020-06-26 17:54:24 +02:00
Simon Steinbeiss
21cac5760b Add application icon (Issue #23) 2020-05-25 21:04:53 +02:00
Simon Steinbeiss
ea0fb09b48 Drop superfluous check for gtk_main_level 2020-04-11 00:58:10 +02:00
Simon Steinbeiss
cded20db98 Fix previous commit 2020-04-11 00:28:28 +02:00
Andre Miranda
6c78030661 Fix closing taskman with Esc (Bug #16656) 2020-04-11 00:09:17 +02:00
rim
be159c9a69 Improve settings saving (bug #15213) 2019-05-21 19:51:53 +02:00
Simon Steinbeiss
a18b8bd3c3 Move legend from tooltip to hide-able statusbar (Bug #14131) 2019-04-24 22:22:13 +02:00
rim
4205a84e34 Update copyright. 2019-03-26 07:56:58 +01:00
Landry Breuil
fcf8beb64e include task-manager.h to have __unused definition, should fix compilation on linux (bug 14401) 2018-06-01 13:05:19 +02:00
rim
ccb9824ce2 Select_Window returns a static Window (bug 14401) 2018-05-30 21:50:59 +02:00
rim
9ed5f79f8d More float initializers (bug 14401) 2018-05-30 21:47:24 +02:00
rim
66a0d4bfc9 Mark unused params, remove unused macro and args (bug 14401) 2018-05-30 21:29:28 +02:00
rim
ceb5a7d347 Make pid type: GPid (bug 14401) 2018-05-30 21:28:35 +02:00
rim
704411a38b Properly use float for constants where appropriate (bug 14401, bug 14403) 2018-05-26 23:51:32 +02:00
rim
c725dee6a9 more sizeof (bug 14401, bug 14403) 2018-05-26 23:21:21 +02:00
rim
c408ee48db Fix clang warning by grouping conditions (bug 14402) 2018-05-26 22:52:37 +02:00