[gnome-control-center] camera: Use AdwStatusPage
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] camera: Use AdwStatusPage
- Date: Sun, 16 Jan 2022 12:22:37 +0000 (UTC)
commit 72e9ace1696d8d0e8f1d35f441efd4fc520d5b9c
Author: Christopher Davis <christopherdavis gnome org>
Date: Fri Jan 14 18:08:44 2022 -0800
camera: Use AdwStatusPage
panels/camera/cc-camera-panel.ui | 35 ++++-------------------------------
1 file changed, 4 insertions(+), 31 deletions(-)
---
diff --git a/panels/camera/cc-camera-panel.ui b/panels/camera/cc-camera-panel.ui
index 667808e6e..51f3c70f7 100644
--- a/panels/camera/cc-camera-panel.ui
+++ b/panels/camera/cc-camera-panel.ui
@@ -11,37 +11,10 @@
<object class="GtkStackPage">
<property name="name">empty</property>
<property name="child">
- <object class="GtkBox">
- <property name="orientation">vertical</property>
- <property name="valign">center</property>
- <child>
- <object class="GtkImage">
- <property name="valign">start</property>
- <property name="pixel-size">96</property>
- <property name="icon-name">camera-disabled-symbolic</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="margin-top">20</property>
- <property name="margin-bottom">15</property>
- <property name="label" translatable="yes">Camera is turned off</property>
- <attributes>
- <attribute name="scale" value="1.44"/>
- </attributes>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="label" translatable="yes">No applications can capture photos or
video.</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- </child>
+ <object class="AdwStatusPage">
+ <property name="icon-name">camera-disabled-symbolic</property>
+ <property name="title" translatable="yes">Camera is Turned Off</property>
+ <property name="description" translatable="yes">No applications can capture photos or
video.</property>
</object>
</property>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]