[gnome-control-center/wip/animated-notebook: 7/9] shell: Remove another use of page numbers



commit 62b99f7d8f92dc0a30b0c68b7cb0f07778cd1a20
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Apr 30 18:04:33 2012 +0100

    shell: Remove another use of page numbers

 shell/gnome-control-center.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index bcd6280..5df8042 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -147,7 +147,6 @@ activate_panel (GnomeControlCenter *shell,
   GList *panels, *l;
   GtkWidget *panel;
   GtkWidget *box;
-  gint i;
   int nat_height;
   const gchar *icon_name;
 
@@ -192,12 +191,11 @@ activate_panel (GnomeControlCenter *shell,
 
   gtk_container_add (GTK_CONTAINER (box), panel);
 
-  i = gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), box,
-                                NULL);
+  gtk_container_add (GTK_CONTAINER (priv->notebook), box);
 
   /* switch to the new panel */
   gtk_widget_show (box);
-  gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook), i);
+  shell_set_current_notebook_widget (GTK_NOTEBOOK (priv->notebook), box);
 
   /* set the title of the window */
   icon_name = get_icon_name_from_g_icon (gicon);



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