Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
9a4068d
Parse ARM cpu names
stsdc Jan 23, 2026
ec9effb
Fix linting; comment out debug
stsdc Jan 23, 2026
07f4b8f
Translated using Weblate (Ukrainian)
IhorHordiichuk Jan 30, 2026
7daaa9d
Change warning logs to debug logs for GPU queries (#529)
stsdc Mar 5, 2026
a7d974f
Move thread to ProcessManager
stsdc Mar 12, 2026
8551d0c
ProcessView: connect process_info_view.update straight to updated signal
stsdc Mar 12, 2026
80017a6
[wip] gtk4-treeview
stsdc Feb 11, 2026
4fd0e6f
[wip] add signal list factory
stsdc Feb 20, 2026
2f17c36
ProcessTreeView: Show process name and add sorting
stsdc Feb 21, 2026
66e86f4
ProcessTreeView: Reintroduce cpu and memory columns
stsdc Feb 21, 2026
a7ecefe
ProcessTreeView: Reintroduce PID column
stsdc Feb 23, 2026
3782254
ProcessTreeView: reintroduce process_selected signal
stsdc Feb 23, 2026
9f2263d
ProcessTreeView: use selected-item property to watch
stsdc Feb 24, 2026
70a6585
ProcessTreeView: update selection model connection and expand Proces …
stsdc Feb 25, 2026
6dbf6ad
TreeViewModel: update values in the store
stsdc Feb 26, 2026
74c6d9b
ProcessTreeView: introduce initial filtering by name
stsdc Feb 26, 2026
e3e35ab
ProcessTreeView: process filtering works
stsdc Feb 28, 2026
28022d0
ProcessTreeView: reverse sorting for numeric values; fix process reor…
stsdc Mar 4, 2026
ef85e37
ProcessTreeView: show process icons
stsdc Mar 4, 2026
80c5919
TreeViewModel: refactor
stsdc Mar 4, 2026
6b96e44
TreeViewModel: refactor
stsdc Mar 4, 2026
434f55e
CPUProcessTreeView: adios!
stsdc Mar 4, 2026
bcc584d
ProcessView: remove obsolete commented out filtering function
stsdc Mar 4, 2026
b90cfe6
cleanup
stsdc Mar 5, 2026
e1de977
Remove unused functions
stsdc Mar 6, 2026
cff0f20
Remove unneeded GTK namespaces
stsdc Mar 6, 2026
c6aaf77
Use correct casting syntax
stsdc Mar 6, 2026
819621f
Remove old treeview functionality
stsdc Mar 6, 2026
550c236
Fix code style
stsdc Mar 6, 2026
5f81903
Use format_size; Move some setup factories to a separate reusable method
stsdc Mar 6, 2026
237129d
Convert lambdas to methods
stsdc Mar 6, 2026
3a64850
Remove a leftover comment
stsdc Mar 6, 2026
433d830
Fix memory size
stsdc Mar 6, 2026
e9d0676
Localize column_view object
stsdc Mar 6, 2026
2e26553
Merge branch 'stsdc/gtk4-treeview' into stsdc/thread-refactor
stsdc Mar 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions po/uk.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: io.elementary.monitor\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-18 13:52+0000\n"
"PO-Revision-Date: 2025-12-19 00:55+0000\n"
"PO-Revision-Date: 2026-01-31 23:55+0000\n"
"Last-Translator: Ihor Hordiichuk <igor_ck@outlook.com>\n"
"Language-Team: Ukrainian <https://l10n.elementaryos.org/projects/desktop/"
"monitor/uk/>\n"
Expand Down Expand Up @@ -334,16 +334,12 @@ msgid "Shared"
msgstr "Спільне"

#: src/Views/SystemView/SystemMemoryView.vala:17
#, fuzzy
#| msgid "Total"
msgid "Swap Total"
msgstr "Усього"
msgstr "Усього Swap"

#: src/Views/SystemView/SystemMemoryView.vala:18
#, fuzzy
#| msgid "Used"
msgid "Swap Used"
msgstr "Використано"
msgstr "Використано Swap"

#: src/Views/SystemView/SystemNetworkView.vala:26
msgid "Network"
Expand Down
10 changes: 5 additions & 5 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public class Monitor.MainWindow : Gtk.ApplicationWindow {
search_revealer.reveal_child = stack.visible_child == process_view;
});

new Thread<void> ("upd", () => {
Timeout.add_seconds (MonitorApp.settings.get_int ("update-time"), () => {
process_view.update ();
var process_manager = ProcessManager.get_default ();

Timeout.add_seconds (MonitorApp.settings.get_int ("update-time"), () => {
process_manager.execute_update_thread ();
Idle.add (() => {
system_view.update ();
dbusserver.indicator_state (MonitorApp.settings.get_boolean ("indicator-state"));
Expand All @@ -92,10 +92,10 @@ public class Monitor.MainWindow : Gtk.ApplicationWindow {
dbusserver.update (res);
return false;
});
return true;
});
return true;
});


dbusserver.indicator_state (MonitorApp.settings.get_boolean ("indicator-state"));

MonitorApp.settings.bind ("opened-view", stack, "visible-child-name", DEFAULT);
Expand Down
18 changes: 14 additions & 4 deletions src/Managers/ProcessManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

namespace Monitor {
public class ProcessManager {
public class ProcessManager : GLib.Object {
private static GLib.Once<ProcessManager> instance;
public static unowned ProcessManager get_default () {
return instance.once (() => { return new ProcessManager (); });
Expand Down Expand Up @@ -33,7 +33,7 @@ namespace Monitor {
apps_info_list = new Gee.HashMap<string, AppInfo> ();

populate_apps_info ();
update_processes.begin ();
execute_update_thread ();
}

public void populate_apps_info () {
Expand Down Expand Up @@ -102,7 +102,7 @@ namespace Monitor {
/**
* Gets all new process and adds them
*/
public async void update_processes () {
public void update_processes () {
/* CPU */
GTop.Cpu cpu_data;
GTop.get_cpu (out cpu_data);
Expand Down Expand Up @@ -153,9 +153,19 @@ namespace Monitor {
cpu_last_useds = useds;
cpu_last_totals = cpu_data.xcpu_total;

}

public void execute_update_thread () {
new Thread<bool> ("update-processes", () => {
Idle.add (() => {
update_processes ();
return false;
});
return true;
});

/* emit the updated signal so that subscribers can update */
updated ();

}

/** Sets name and icon for a process that is a Flatpak app and its children. */
Expand Down
Loading
Loading