shell: Fix first selection not working
We weren't saving the last_width early enough.
This commit is contained in:
parent
f62d801656
commit
95d5e61100
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue