[gnome-control-center] shell: Fix resetting page selection
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Fix resetting page selection
- Date: Fri, 18 May 2012 16:43:45 +0000 (UTC)
commit 948867b6d39d644733acc7b82ca71ecf22fc4ca5
Author: Bastien Nocera <hadess hadess net>
Date: Fri May 18 17:33:08 2012 +0100
shell: Fix resetting page selection
When the page selection happens when another page selection hasn't
started yet, we need to cancel the previous animation, or only one
of them might be effectively acted upon.
This fixes the page from being selected if the search term is changed
quickly (you'd end up at the overview page instead of staying on the
search results page).
Requires the clutter patch from:
https://bugzilla.gnome.org/show_bug.cgi?id=676334
https://bugzilla.gnome.org/show_bug.cgi?id=676328
shell/cc-notebook.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index dbbbc0c..8dd3400 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -356,6 +356,9 @@ _cc_notebook_select_page (CcNotebook *self,
pos.y = 0;
pos.x = self->priv->last_width * index;
+ if (clutter_actor_get_transition (self->priv->scroll, "scroll-to") != NULL)
+ clutter_actor_remove_transition (self->priv->scroll, "scroll-to");
+
clutter_actor_save_easing_state (self->priv->scroll);
clutter_actor_set_easing_duration (self->priv->scroll, 500);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]