sysd-manager 2.18.0

Application to empower user to manage their <b>systemd units</b> via Graphical User Interface. Not only are you able to make changes to the enablement and running status of each of the units, but you will also be able to view and modify their unit files and check the journal logs.
mod imp;

use crate::systemd::data::UnitInfo;
use gtk::{gio, glib, subclass::prelude::*};

mod rowitem;

glib::wrapper! {
    pub struct InfoWindow(ObjectSubclass<imp::InfoWindowImp>)
        @extends adw::Window, gtk::Window, gtk::Widget,
        @implements gio::ActionGroup, gio::ActionMap, gtk::Accessible, gtk::Buildable,
                    gtk::ConstraintTarget, gtk::Native, gtk::Root, gtk::ShortcutManager;
}

impl InfoWindow {
    pub fn new(unit: Option<&UnitInfo>) -> Self {
        // Create new window
        //let zelf = Object::builder().build();
        let obj: InfoWindow = glib::Object::new();
        obj.imp().fill_data(unit);
        obj
    }

    pub fn fill_data(&self, unit: Option<&UnitInfo>) {
        self.imp().fill_data(unit);
    }

    pub fn fill_systemd_info(&self) {
        self.imp().fill_systemd_info();
    }
}