[gtk+] gtk-demo: Make the scale demo fully functional
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk-demo: Make the scale demo fully functional
- Date: Wed, 24 Aug 2016 15:12:49 +0000 (UTC)
commit ceb18a989e6ed9238ea1afc449aeaecbf3a5dfbb
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 24 11:11:57 2016 -0400
gtk-demo: Make the scale demo fully functional
The adjustments need to have step-increment and page-increment
set up, or keynav and autoscrolling will not work.
demos/gtk-demo/scale.ui | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/demos/gtk-demo/scale.ui b/demos/gtk-demo/scale.ui
index a23d3b6..198fa09 100644
--- a/demos/gtk-demo/scale.ui
+++ b/demos/gtk-demo/scale.ui
@@ -4,14 +4,20 @@
<object class="GtkAdjustment" id="adjustment1">
<property name="upper">4</property>
<property name="value">2</property>
+ <property name="step-increment">0.1</property>
+ <property name="page-increment">1</property>
</object>
<object class="GtkAdjustment" id="adjustment2">
<property name="upper">4</property>
<property name="value">2</property>
+ <property name="step-increment">0.1</property>
+ <property name="page-increment">1</property>
</object>
<object class="GtkAdjustment" id="adjustment3">
<property name="upper">4</property>
<property name="value">2</property>
+ <property name="step-increment">0.1</property>
+ <property name="page-increment">1</property>
</object>
<object class="GtkWindow" id="window1">
<property name="title" translatable="yes">Scales</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]