[gtk+] Fix a thinko in adjustment animation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix a thinko in adjustment animation
- Date: Mon, 8 Sep 2014 02:46:33 +0000 (UTC)
commit 169ca5ad21ef91330896dbd3845a36fa4f6de6ce
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 7 22:45:08 2014 -0400
Fix a thinko in adjustment animation
The target value is only relevant if we're actually animating.
Don't look at it otherwise.
https://bugzilla.gnome.org/show_bug.cgi?id=736178
gtk/gtkadjustment.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkadjustment.c b/gtk/gtkadjustment.c
index 2a2f60d..10f43c1 100644
--- a/gtk/gtkadjustment.c
+++ b/gtk/gtkadjustment.c
@@ -530,7 +530,7 @@ gtk_adjustment_set_value_internal (GtkAdjustment *adjustment,
if (animate && priv->duration != 0 && priv->clock != NULL)
{
- if (priv->target == value)
+ if (priv->tick_id && priv->target == value)
return;
priv->source = priv->value;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]