[libadwaita/wip/exalm/animation-demo: 2/2] demo: Rename spring precision to epsilon




commit e27561a95dc9641f30576c28108dc7b701c1d886
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Dec 8 16:54:37 2021 +0500

    demo: Rename spring precision to epsilon
    
    Match the API.

 demo/adw-demo-window.c  | 6 +++---
 demo/adw-demo-window.ui | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/demo/adw-demo-window.c b/demo/adw-demo-window.c
index d5ae183c..6089e515 100644
--- a/demo/adw-demo-window.c
+++ b/demo/adw-demo-window.c
@@ -43,7 +43,7 @@ struct _AdwDemoWindow
   GtkSpinButton *spring_animation_damping;
   GtkSpinButton *spring_animation_mass;
   GtkSpinButton *spring_animation_stiffness;
-  GtkSpinButton *spring_animation_precision;
+  GtkSpinButton *spring_animation_epsilon;
   GtkSwitch *spring_animation_clamp_switch;
 };
 
@@ -812,7 +812,7 @@ adw_demo_window_class_init (AdwDemoWindowClass *klass)
   gtk_widget_class_bind_template_child (widget_class, AdwDemoWindow, spring_animation_damping);
   gtk_widget_class_bind_template_child (widget_class, AdwDemoWindow, spring_animation_mass);
   gtk_widget_class_bind_template_child (widget_class, AdwDemoWindow, spring_animation_stiffness);
-  gtk_widget_class_bind_template_child (widget_class, AdwDemoWindow, spring_animation_precision);
+  gtk_widget_class_bind_template_child (widget_class, AdwDemoWindow, spring_animation_epsilon);
   gtk_widget_class_bind_template_child (widget_class, AdwDemoWindow, spring_animation_clamp_switch);
   gtk_widget_class_bind_template_callback (widget_class, notify_visible_child_cb);
   gtk_widget_class_bind_template_callback (widget_class, back_clicked_cb);
@@ -928,7 +928,7 @@ animation_page_init (AdwDemoWindow *self)
   g_object_bind_property (self->spring_animation_velocity, "value",
                           self->spring_animation, "initial_velocity",
                           G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL);
-  g_object_bind_property (self->spring_animation_precision, "value",
+  g_object_bind_property (self->spring_animation_epsilon, "value",
                           self->spring_animation, "epsilon",
                           G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL);
   g_object_bind_property (self->spring_animation_clamp_switch, "active",
diff --git a/demo/adw-demo-window.ui b/demo/adw-demo-window.ui
index c2e39d3d..69467177 100644
--- a/demo/adw-demo-window.ui
+++ b/demo/adw-demo-window.ui
@@ -1322,9 +1322,9 @@
                                                         </child>
                                                         <child>
                                                           <object class="AdwActionRow">
-                                                            <property name="title" 
translatable="yes">Precision</property>
+                                                            <property name="title" 
translatable="yes">Epsilon</property>
                                                             <child>
-                                                              <object class="GtkSpinButton" 
id="spring_animation_precision">
+                                                              <object class="GtkSpinButton" 
id="spring_animation_epsilon">
                                                                 <property name="valign">center</property>
                                                                 <property name="numeric">True</property>
                                                                 <property name="digits">5</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]