[libadwaita] view-switcher: Add vertical box orientation to ViewSwitcherBar examples
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] view-switcher: Add vertical box orientation to ViewSwitcherBar examples
- Date: Thu, 27 Jan 2022 10:32:32 +0000 (UTC)
commit 5defbcbecbb7c800915217b94a5c10a076ddc379
Author: Jonas Dreßler <verdre v0yd nl>
Date: Thu Jan 27 11:25:21 2022 +0100
view-switcher: Add vertical box orientation to ViewSwitcherBar examples
The view switcher bar should positioned be at the bottom edge, not at
the right edge of the window, so we want to use a vertical-orientation
GtkBox here.
src/adw-view-switcher-bar.c | 1 +
src/adw-view-switcher-title.c | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/src/adw-view-switcher-bar.c b/src/adw-view-switcher-bar.c
index cced773f..c3f62248 100644
--- a/src/adw-view-switcher-bar.c
+++ b/src/adw-view-switcher-bar.c
@@ -48,6 +48,7 @@
* </child>
* <child>
* <object class="GtkBox">
+ * <property name="orientation">vertical</property>
* <child>
* <object class="AdwViewStack" id="stack"/>
* </child>
diff --git a/src/adw-view-switcher-title.c b/src/adw-view-switcher-title.c
index f62dcc2c..88df0517 100644
--- a/src/adw-view-switcher-title.c
+++ b/src/adw-view-switcher-title.c
@@ -55,6 +55,7 @@
* </child>
* <child>
* <object class="GtkBox">
+ * <property name="orientation">vertical</property>
* <child>
* <object class="AdwViewStack" id="stack"/>
* </child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]