if (priv->finger_scroll != NULL)
{
+ tidy_finger_scroll_stop (TIDY_FINGER_SCROLL (priv->finger_scroll));
g_object_unref (priv->finger_scroll);
priv->finger_scroll = NULL;
}
if (priv->viewport != NULL)
{
+ tidy_viewport_stop (TIDY_VIEWPORT (priv->viewport));
g_object_unref (priv->viewport);
priv->viewport = NULL;
}
}
}
+void
+tidy_adjustment_interpolate_stop (TidyAdjustment *adjustment)
+{
+ stop_interpolation (adjustment);
+}
+
static void
tidy_adjustment_dispose (GObject *object)
{
TidyAdjustmentPrivate *priv = adjustment->priv;
stop_interpolation (adjustment);
-
+
if (n_frames <= 1)
{
tidy_adjustment_set_valuex (adjustment, value);
priv->old_position = priv->value;
priv->new_position = value;
-
+
priv->dx = clutter_qdivx (priv->new_position - priv->old_position,
CLUTTER_INT_TO_FIXED (n_frames));
priv->interpolation = clutter_timeline_new (n_frames, fps);
gboolean interpolate,
guint n_frames,
guint fps);
+void tidy_adjustment_interpolate_stop (TidyAdjustment *adjustment);
G_END_DECLS
priv->hadjustment,
g_value_get_object (value));
break;
-
+
case PROP_SYNC_ADJUST :
priv->sync_adjustments = g_value_get_boolean (value);
break;
}
}
+void
+tidy_viewport_stop (TidyViewport *viewport)
+{
+ TidyViewportPrivate *priv = TIDY_VIEWPORT (viewport)->priv;
+
+ tidy_adjustment_interpolate_stop (priv->hadjustment);
+ tidy_adjustment_interpolate_stop (priv->vadjustment);
+}
+
static void
tidy_viewport_dispose (GObject *gobject)
{
TidyViewportPrivate *priv = TIDY_VIEWPORT (gobject)->priv;
-
+
if (priv->hadjustment)
{
+ tidy_adjustment_interpolate_stop (priv->hadjustment);
g_object_unref (priv->hadjustment);
priv->hadjustment = NULL;
}
if (priv->vadjustment)
{
+ tidy_adjustment_interpolate_stop (priv->vadjustment);
g_object_unref (priv->vadjustment);
priv->vadjustment = NULL;
}
gint *x,
gint *y,
gint *z);
+void tidy_viewport_stop (TidyViewport *viewport);
G_END_DECLS