[glide] Update the selections for all inspector pages



commit b828ee7baad69474a9c515b7fdf3e4f2223a53d4
Author: Robert Carr <racarr Valentine localdomain>
Date:   Sat May 1 22:30:38 2010 -0400

    Update the selections for all inspector pages

 src/glide-inspector-notebook.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/glide-inspector-notebook.c b/src/glide-inspector-notebook.c
index fd84164..c8eee35 100644
--- a/src/glide-inspector-notebook.c
+++ b/src/glide-inspector-notebook.c
@@ -39,9 +39,13 @@ glide_inspector_notebook_selection_changed (GlideStageManager *manager,
   GlideInspectorNotebook *inspector = (GlideInspectorNotebook *)user_data;
   GtkNotebook *notebook = (GtkNotebook *)inspector;
   GlideActor *selection = glide_stage_manager_get_selection (manager);
-  GtkWidget *page = gtk_notebook_get_nth_page (notebook, gtk_notebook_get_current_page (notebook));
+  int i;
   
-  g_object_set (page, "actor", selection, NULL);
+  for (i = 0; i < gtk_notebook_get_n_pages (notebook); i++)
+    {
+      GtkWidget *page = gtk_notebook_get_nth_page (notebook, i);
+      g_object_set (page, "actor", selection, NULL);
+    }
 }
 
 static void



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