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 glib::Properties;
|
||||||
use gtk::CompositeTemplate;
|
use gtk::CompositeTemplate;
|
||||||
|
|
||||||
use super::*;
|
|
||||||
use crate::deps::*;
|
use crate::deps::*;
|
||||||
|
|
||||||
mod imp {
|
mod imp {
|
||||||
|
|
@ -41,8 +40,6 @@ mod imp {
|
||||||
pub struct LpWindowContent {
|
pub struct LpWindowContent {
|
||||||
#[template_child]
|
#[template_child]
|
||||||
pub(super) toolbar_view: TemplateChild<adw::ToolbarView>,
|
pub(super) toolbar_view: TemplateChild<adw::ToolbarView>,
|
||||||
#[template_child]
|
|
||||||
pub(super) header_container: TemplateChild<LpShyBin>,
|
|
||||||
|
|
||||||
#[property(get, set, nullable)]
|
#[property(get, set, nullable)]
|
||||||
headerbar: RefCell<Option<gtk::Widget>>,
|
headerbar: RefCell<Option<gtk::Widget>>,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<property name="child">
|
<property name="child">
|
||||||
<object class="AdwToolbarView" id="toolbar_view">
|
<object class="AdwToolbarView" id="toolbar_view">
|
||||||
<child type="top">
|
<child type="top">
|
||||||
<object class="LpShyBin" id="header_container">
|
<object class="LpShyBin">
|
||||||
<property name="child" bind-source="LpWindowContent" bind-property="headerbar" />
|
<property name="child" bind-source="LpWindowContent" bind-property="headerbar" />
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ mod imp {
|
||||||
|
|
||||||
#[property(get = Self::is_showing_image)]
|
#[property(get = Self::is_showing_image)]
|
||||||
pub(super) is_showing_image: PhantomData<bool>,
|
pub(super) is_showing_image: PhantomData<bool>,
|
||||||
|
/// Set via binding to HeaderBar
|
||||||
#[property(get, set)]
|
#[property(get, set)]
|
||||||
headerbar_opacity: Cell<f64>,
|
headerbar_opacity: Cell<f64>,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue