[gnome-control-center/single-window-shell: 8/9] [shell] remove use of deprecated functions



commit 61bb2ef2fadd73a19d2c28e35966273548057e7a
Author: Thomas Wood <thos gnome org>
Date:   Sat Dec 5 10:04:00 2009 +0000

    [shell] remove use of deprecated functions

 shell/control-center.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/shell/control-center.c b/shell/control-center.c
index b895e7a..fdd2cd6 100644
--- a/shell/control-center.c
+++ b/shell/control-center.c
@@ -185,7 +185,7 @@ plug_added_cb (GtkSocket  *socket,
 
   notebook = W (builder, "notebook");
 
-  gtk_notebook_set_page (GTK_NOTEBOOK (notebook), 1);
+  gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), 1);
 
   /* make sure no items are selected when the user switches back to the icon
    * views */
@@ -244,7 +244,7 @@ item_activated_cb (GtkIconView *icon_view,
 void
 home_button_clicked_cb (GtkButton *button, GtkBuilder *builder)
 {
-  gtk_notebook_set_page (GTK_NOTEBOOK (W (builder, "notebook")), 0);
+  gtk_notebook_set_current_page (GTK_NOTEBOOK (W (builder, "notebook")), 0);
   gtk_widget_hide (W (builder, "applet-label"));
   gtk_widget_hide (W (builder, "arrow"));
 }



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