From 95d5e61100aa7667f7789a28eee1b04e6614f470 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 23 May 2012 17:07:29 +0100 Subject: [PATCH] shell: Fix first selection not working We weren't saving the last_width early enough. --- shell/cc-notebook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c index 16bad06e6..b4bb729a8 100644 --- a/shell/cc-notebook.c +++ b/shell/cc-notebook.c @@ -303,6 +303,8 @@ on_embed_size_allocate (GtkWidget *embed, if (self->priv->selected_page == NULL) return; + self->priv->last_width = allocation->width; + page_w = allocation->width; page_h = allocation->height; @@ -319,8 +321,6 @@ on_embed_size_allocate (GtkWidget *embed, if (clutter_actor_get_transition (self->priv->scroll, "scroll-to") != NULL) return; - self->priv->last_width = allocation->width; - frame = g_object_get_data (G_OBJECT (self->priv->selected_page), "cc-notebook-frame");