mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-12 08:28:32 +02:00

should be working now add plugins to sidebar add plugin system base Create function signatures for plugins Update crates
23 lines
622 B
Rust
23 lines
622 B
Rust
use crate::components::base::list_entry_impl;
|
|
use adw::glib::{Object};
|
|
use glib::prelude::IsA;
|
|
use gtk::prelude::ListBoxRowExt;
|
|
use gtk::Widget;
|
|
|
|
glib::wrapper! {
|
|
pub struct ListEntry(ObjectSubclass<list_entry_impl::ListEntry>)
|
|
@extends gtk::ListBoxRow, gtk::Widget,
|
|
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Actionable;
|
|
}
|
|
|
|
unsafe impl Send for ListEntry {}
|
|
unsafe impl Sync for ListEntry {}
|
|
|
|
impl ListEntry {
|
|
pub fn new(child: &impl IsA<Widget>) -> Self {
|
|
let entry: ListEntry = Object::builder().build();
|
|
entry.set_child(Some(child));
|
|
entry
|
|
}
|
|
}
|