[gnome-control-center] shell: Add debug to CcNotebook scrolling
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Add debug to CcNotebook scrolling
- Date: Wed, 23 May 2012 17:07:16 +0000 (UTC)
commit a2d338b2d8ffbc39da26de192bdc1bbc01d86b84
Author: Bastien Nocera <hadess hadess net>
Date: Wed May 23 18:06:06 2012 +0100
shell: Add debug to CcNotebook scrolling
shell/cc-notebook.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index b4bb729..d1bf7c1 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -326,6 +326,7 @@ on_embed_size_allocate (GtkWidget *embed,
pos.y = 0;
pos.x = clutter_actor_get_x (frame);
+ g_debug ("Scrolling to (%lf,%lf) in allocation", pos.x, pos.y);
clutter_scroll_actor_scroll_to_point (CLUTTER_SCROLL_ACTOR (self->priv->scroll), &pos);
}
@@ -377,12 +378,15 @@ _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)
+ if (clutter_actor_get_transition (self->priv->scroll, "scroll-to") != NULL) {
+ g_debug ("Cancelling previous scroll animation");
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);
+ g_debug ("Scrolling to (%lf,%lf) in page selection", pos.x, pos.y);
clutter_scroll_actor_scroll_to_point (CLUTTER_SCROLL_ACTOR (self->priv->scroll), &pos);
clutter_actor_restore_easing_state (self->priv->scroll);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]