[libegg/spread-table-dnd] More tweaking placeholder animation speed.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libegg/spread-table-dnd] More tweaking placeholder animation speed.
- Date: Mon, 11 Apr 2011 18:49:24 +0000 (UTC)
commit 776fe020d6bd0891dd0a1efdd258fdd24422fef9
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Mon Apr 11 14:44:42 2011 +0900
More tweaking placeholder animation speed.
libegg/spreadtable/eggplaceholder.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libegg/spreadtable/eggplaceholder.c b/libegg/spreadtable/eggplaceholder.c
index 06c16e5..d0913e8 100644
--- a/libegg/spreadtable/eggplaceholder.c
+++ b/libegg/spreadtable/eggplaceholder.c
@@ -12,7 +12,7 @@ static void egg_placeholder_get_preferred_height (GtkWidget *widget,
gint *min_height,
gint *nat_height);
-#define ANIMATION_STEP 0.2F /* How much percentage of the size to animate per iteration */
+#define ANIMATION_STEP 0.12F /* How much percentage of the size to animate per iteration */
#define ANIMATION_FREQ 20 /* At what frequency in millisecs to animate */
enum {
@@ -131,8 +131,8 @@ placeholder_animate (EggPlaceholder *placeholder)
gtk_widget_queue_resize (GTK_WIDGET (placeholder));
- if (placeholder->priv->animation_percent == 1.0 ||
- placeholder->priv->animation_percent == 0.0)
+ if (placeholder->priv->animation_percent >= 1.0 ||
+ placeholder->priv->animation_percent <= 0.0)
{
placeholder->priv->animation_id = 0;
placeholder->priv->animation_direction = EGG_PLACEHOLDER_ANIM_NONE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]