upgrade gtk-rs version
This commit is contained in:
parent
0b5f6b8386
commit
cc577b1367
23 changed files with 401 additions and 317 deletions
28
examples/app_library/window_inner/imp.rs
Normal file
28
examples/app_library/window_inner/imp.rs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
use gtk4::glib;
|
||||
use gtk4::subclass::prelude::*;
|
||||
use gtk4::SearchEntry;
|
||||
use once_cell::sync::OnceCell;
|
||||
|
||||
use crate::app_grid::AppGrid;
|
||||
use crate::group_grid::GroupGrid;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct AppLibraryWindowInner {
|
||||
pub entry: OnceCell<SearchEntry>,
|
||||
pub app_grid: OnceCell<AppGrid>,
|
||||
pub group_grid: OnceCell<GroupGrid>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
impl ObjectSubclass for AppLibraryWindowInner {
|
||||
// `NAME` needs to match `class` attribute of template
|
||||
const NAME: &'static str = "AppLibraryWindowInner";
|
||||
type Type = super::AppLibraryWindowInner;
|
||||
type ParentType = gtk4::Box;
|
||||
}
|
||||
|
||||
impl ObjectImpl for AppLibraryWindowInner {}
|
||||
|
||||
impl WidgetImpl for AppLibraryWindowInner {}
|
||||
|
||||
impl BoxImpl for AppLibraryWindowInner {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue