mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-17 10:18:32 +02:00
38 lines
897 B
Rust
38 lines
897 B
Rust
use crate::components::base::list_entry;
|
|
use gtk::subclass::prelude::*;
|
|
use gtk::CompositeTemplate;
|
|
|
|
#[derive(Default, CompositeTemplate)]
|
|
#[template(resource = "/org/Xetibo/ReSet/resetListBoxRow.ui")]
|
|
pub struct ListEntry {}
|
|
|
|
#[glib::object_subclass]
|
|
impl ObjectSubclass for ListEntry {
|
|
const ABSTRACT: bool = false;
|
|
const NAME: &'static str = "resetListBoxRow";
|
|
type Type = list_entry::ListEntry;
|
|
type ParentType = gtk::ListBoxRow;
|
|
|
|
fn class_init(klass: &mut Self::Class) {
|
|
klass.bind_template();
|
|
}
|
|
|
|
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {
|
|
obj.init_template();
|
|
}
|
|
}
|
|
|
|
impl ObjectImpl for ListEntry {
|
|
fn constructed(&self) {
|
|
self.parent_constructed();
|
|
}
|
|
}
|
|
|
|
impl ListBoxRowImpl for ListEntry {}
|
|
|
|
impl WidgetImpl for ListEntry {}
|
|
|
|
impl WindowImpl for ListEntry {}
|
|
|
|
impl ApplicationWindowImpl for ListEntry {}
|