sysd-manager 2.20.11

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 construct_info;
mod imp;

use super::{InterPanelMessage, app_window::AppWindow};
use crate::widget::text_search::TextSearchEntry;
use gtk::{glib, subclass::prelude::ObjectSubclassIsExt};

glib::wrapper! {
    pub struct UnitStatusPanel(ObjectSubclass<imp::UnitStatusPanelImp>)
        @extends gtk::Box, gtk::Widget,
        @implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Orientable;
}

impl UnitStatusPanel {
    pub fn new() -> Self {
        // Create new window
        let obj: UnitStatusPanel = glib::Object::new();

        obj
    }

    pub fn register(&self, app_window: &AppWindow) {
        self.imp().register(app_window);
    }

    pub fn set_inter_message(&self, action: &InterPanelMessage) {
        self.imp().set_inter_message(action);
    }

    pub fn main_text_view(&self) -> gtk::TextView {
        self.imp().unit_status_textview.get()
    }

    pub fn set_text_search_entry(&self, text_search_entry: &TextSearchEntry) {
        self.imp().set_text_search_entry(text_search_entry)
    }
}

impl Default for UnitStatusPanel {
    fn default() -> Self {
        Self::new()
    }
}