[gnome-control-center] shell: Fix first selection not working



commit 95d5e61100aa7667f7789a28eee1b04e6614f470
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 23 17:07:29 2012 +0100

    shell: Fix first selection not working
    
    We weren't saving the last_width early enough.

 shell/cc-notebook.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index 16bad06..b4bb729 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");
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]