Skip to content

Commit

Permalink
Merge branch 'main' into danirabbit/auto-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 authored Jan 30, 2024
2 parents 5577f3c + 023f86b commit a384f14
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install Dependencies
run: |
apt update
apt install -y meson libadwaita-1-dev libfwupd-dev libgranite-7-dev libgtk-4-dev libgtop2-dev libgudev-1.0-dev libudisks2-dev libswitchboard-3-dev libappstream-dev valac
apt install -y meson libadwaita-1-dev libfwupd-dev libgranite-7-dev libgtk-4-dev libgtop2-dev libgudev-1.0-dev libudisks2-dev libswitchboard-3-dev libappstream-dev libpackagekit-glib2-dev valac
- name: Build
env:
DESTDIR: out
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ You'll need the following dependencies:
* libudisks2-dev
* libadwaita-1-dev
* libappstream-dev
* libpackagekit-glib2-dev
* meson
* valac
* switcheroo-control (at runtime)
Expand Down
1 change: 1 addition & 0 deletions src/DBus/SystemUpdate.vala
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public interface SystemUpdate : Object {
public struct UpdateDetails {
string[] packages;
int size;
Pk.Info[] info;
}

public signal void state_changed ();
Expand Down
4 changes: 4 additions & 0 deletions src/Views/OperatingSystemView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ public class About.OperatingSystemView : Gtk.Box {
details.packages.length
).printf (details.packages.length);

if (Pk.Info.SECURITY in details.info) {
updates_image.icon_name = "software-update-urgent";
}

packages.splice (0, packages.get_n_items (), details.packages);
} catch (Error e) {
updates_description.label = _("Unable to determine number of updates");
Expand Down
1 change: 1 addition & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ shared_module(
dependency('gtk4'),
dependency('libadwaita-1'),
dependency('libgtop-2.0'),
dependency('packagekit-glib2'),
dependency('gudev-1.0'),
dependency('udisks2'),
appstream_dep,
Expand Down

0 comments on commit a384f14

Please sign in to comment.