shell: Fix first selection not working

We weren't saving the last_width early enough.
This commit is contained in:
Bastien Nocera 2012-05-23 17:07:29 +01:00
parent f62d801656
commit 95d5e61100

View file

@ -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");