[libhandy] demo: Demo HdyCarousel:allow-scroll-wheel
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] demo: Demo HdyCarousel:allow-scroll-wheel
- Date: Thu, 29 Apr 2021 09:43:25 +0000 (UTC)
commit 44bdccd03eec4028e77041be701faca33237aef6
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Apr 28 16:18:10 2021 +0200
demo: Demo HdyCarousel:allow-scroll-wheel
examples/hdy-demo-window.ui | 15 +++++++++++++++
1 file changed, 15 insertions(+)
---
diff --git a/examples/hdy-demo-window.ui b/examples/hdy-demo-window.ui
index c9f544f5..db34c928 100644
--- a/examples/hdy-demo-window.ui
+++ b/examples/hdy-demo-window.ui
@@ -1002,6 +1002,7 @@ Try using it with a horizontally expanded clamp to make your search entry adapti
<child>
<object class="HdyCarousel" id="carousel">
<property name="visible">True</property>
+ <property name="allow-scroll-wheel" bind-source="carousel_scroll_wheel"
bind-property="active" bind-flags="sync-create|bidirectional"/>
<property name="allow-long-swipes" bind-source="carousel_long_swipes"
bind-property="active" bind-flags="sync-create|bidirectional"/>
<child>
<object class="HdyStatusPage">
@@ -1046,6 +1047,20 @@ Try using it with a horizontally expanded clamp to make your search entry adapti
<signal name="notify::selected-index"
handler="notify_carousel_indicators_cb" swapped="no"/>
</object>
</child>
+ <child>
+ <object class="HdyActionRow">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes">Scroll wheel</property>
+ <property name="activatable_widget">carousel_scroll_wheel</property>
+ <child>
+ <object class="GtkSwitch" id="carousel_scroll_wheel">
+ <property name="visible">True</property>
+ <property name="valign">center</property>
+ <property name="active">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
<child>
<object class="HdyActionRow">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]