summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-04-30 18:04:33 +0100
committerBastien Nocera <hadess@hadess.net>2012-05-09 16:09:04 +0100
commit8a01c7caf1a93ae7b973b2063fbdc5ce3dd57280 (patch)
treed283a6265be734628e2f55250ee1e8bbe4c3addc
parent43b53020cac5ca0c9ef2e1dfcf30ba9c6b49cdea (diff)
downloadgnome-control-center-8a01c7caf1a93ae7b973b2063fbdc5ce3dd57280.tar.gz
shell: Remove another use of page numbers
-rw-r--r--shell/gnome-control-center.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index c156a1455..95e34b0fe 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -152,7 +152,6 @@ activate_panel (GnomeControlCenter *shell,
GList *panels, *l;
GtkWidget *panel;
GtkWidget *box;
- gint i;
const gchar *icon_name;
/* check if there is an plugin that implements this panel */
@@ -196,12 +195,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);