[gnome-control-center/wip/animated-notebook] shell: Update for API change



commit 68abbd09c7cc79534f3d86b66b1813a4c71d1fa1
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 4 13:12:42 2012 +0100

    shell: Update for API change

 shell/test-notebook.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/shell/test-notebook.c b/shell/test-notebook.c
index ca0a4d7..592ced2 100644
--- a/shell/test-notebook.c
+++ b/shell/test-notebook.c
@@ -30,6 +30,7 @@ create_page_contents (const char *text)
   gtk_box_pack_end (GTK_BOX (hbox), fwd_button, FALSE, FALSE, 0);
 
   GtkWidget *label = gtk_label_new (text);
+  gtk_widget_set_name (label, text);
 
   gtk_box_pack_end (GTK_BOX (vbox), label, TRUE, TRUE, 0);
 
@@ -41,8 +42,8 @@ create_page_contents (const char *text)
 static void
 on_page_change (CcNotebook *notebook)
 {
-  g_print (G_STRLOC ": Currently selected page: %d\n",
-           cc_notebook_get_selected_index (notebook));
+  g_print (G_STRLOC ": Currently selected page: %s\n",
+           gtk_widget_get_name (cc_notebook_get_selected_page (notebook)));
 }
 
 int



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