windowContent: Remove unneeded template child
This commit is contained in:
parent
6070939382
commit
f5cd2b822e
3 changed files with 2 additions and 4 deletions
|
|
@ -29,7 +29,6 @@ use adw::subclass::prelude::*;
|
|||
use glib::Properties;
|
||||
use gtk::CompositeTemplate;
|
||||
|
||||
use super::*;
|
||||
use crate::deps::*;
|
||||
|
||||
mod imp {
|
||||
|
|
@ -41,8 +40,6 @@ mod imp {
|
|||
pub struct LpWindowContent {
|
||||
#[template_child]
|
||||
pub(super) toolbar_view: TemplateChild<adw::ToolbarView>,
|
||||
#[template_child]
|
||||
pub(super) header_container: TemplateChild<LpShyBin>,
|
||||
|
||||
#[property(get, set, nullable)]
|
||||
headerbar: RefCell<Option<gtk::Widget>>,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
<property name="child">
|
||||
<object class="AdwToolbarView" id="toolbar_view">
|
||||
<child type="top">
|
||||
<object class="LpShyBin" id="header_container">
|
||||
<object class="LpShyBin">
|
||||
<property name="child" bind-source="LpWindowContent" bind-property="headerbar" />
|
||||
</object>
|
||||
</child>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue