[gnome-control-center/wip/animated-notebook] shell: Fix a TODO
- From: Bastien Nocera <hadess src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-control-center/wip/animated-notebook] shell: Fix a TODO
 
- Date: Thu,  3 May 2012 18:39:20 +0000 (UTC)
 
commit 5212b8f06b8d6ad63bc9001b6bd527789ebbc8e5
Author: Bastien Nocera <hadess hadess net>
Date:   Thu May 3 19:38:52 2012 +0100
    shell: Fix a TODO
 shell/TODO          |    1 -
 shell/cc-notebook.c |    5 +++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/shell/TODO b/shell/TODO
index 3c1a626..8b5bf2a 100644
--- a/shell/TODO
+++ b/shell/TODO
@@ -1,5 +1,4 @@
 - Remove index from the public API
-- Figure out why the first scroll doesn't get an animation
 - Fix cc_notebook_remove_page() when current page is removed
 - Make transitions between pages always be contiguous
 - Figure out stage colour, from theme
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index a02a589..15198f3 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -220,6 +220,11 @@ on_embed_size_allocate (GtkWidget     *embed,
                 offset += page_w;
         }
 
+	/* This stops the non-animated scrolling from happening
+	 * if we're still scrolling there */
+	if (self->priv->last_width == allocation->width)
+		return;
+
         self->priv->last_width = allocation->width;
 
         pos.y = 0;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]