[gnome-characters/bilelmoussaoui/ui-cleanup: 14/14] window: wrap back button in a reavealer
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters/bilelmoussaoui/ui-cleanup: 14/14] window: wrap back button in a reavealer
- Date: Fri, 12 Feb 2021 02:57:03 +0000 (UTC)
commit 4126a36ba765f6aa8bb2fcdc536a961e330614fd
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Fri Feb 12 03:56:16 2021 +0100
window: wrap back button in a reavealer
allows us to animate showing/hiding it with a crossfade animation
data/mainwindow.ui | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/data/mainwindow.ui b/data/mainwindow.ui
index 718471f..8c976b4 100644
--- a/data/mainwindow.ui
+++ b/data/mainwindow.ui
@@ -124,13 +124,20 @@
<property name="show-close-button">True</property>
<property name="has-subtitle">False</property>
<child>
- <object class="GtkButton" id="back-button">
- <property name="can_focus">True</property>
- <property name="visible" bind-source="leaflet" bind-property="folded"
bind-flags="sync-create" />
+ <object class="GtkRevealer">
+ <property name="transition-type">crossfade</property>
+ <property name="visible">True</property>
+ <property name="reveal-child" bind-source="leaflet" bind-property="folded"
bind-flags="sync-create" />
<child>
- <object class="GtkImage" id="back-button-image">
+ <object class="GtkButton" id="back-button">
+ <property name="can_focus">True</property>
<property name="visible">True</property>
- <property name="icon-name">go-previous-symbolic</property>
+ <child>
+ <object class="GtkImage" id="back-button-image">
+ <property name="visible">True</property>
+ <property name="icon-name">go-previous-symbolic</property>
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]