pipewire connection: Show banner if disconnected

This commit is contained in:
Denis Drakhnia
2023-09-28 08:22:45 +03:00
parent 7d6aae70c5
commit 20f64595ac
8 changed files with 46 additions and 4 deletions

View File

@@ -12,6 +12,9 @@ mod imp {
#[template_child]
pub header_bar: TemplateChild<adw::HeaderBar>,
#[template_child]
#[property(type = adw::Banner, get = |_| self.connection_banner.clone())]
pub connection_banner: TemplateChild<adw::Banner>,
#[template_child]
#[property(type = graph::GraphView, get = |_| self.graph.clone())]
pub graph: TemplateChild<graph::GraphView>,
}

View File

@@ -39,6 +39,12 @@
</child>
</object>
</child>
<child>
<object class="AdwBanner" id="connection_banner">
<property name="title" translatable="yes">Disconnected</property>
<property name="revealed">false</property>
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<child>