--- test-pager.c~	2002-11-24 09:34:11.000000000 -0800
+++ test-pager.c	2006-01-05 22:29:33.000000000 -0800
@@ -3,14 +3,26 @@
 #include <gtk/gtk.h>
 
 static void
+mode_toggle_cb(GtkWidget* mode_toggle, gpointer data)
+{
+  WnckPager *pager = WNCK_PAGER(data);
+  if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(mode_toggle)))
+    wnck_pager_set_display_mode(pager, WNCK_PAGER_DISPLAY_NAME);
+  else
+    wnck_pager_set_display_mode(pager, WNCK_PAGER_DISPLAY_CONTENT);
+}
+
+static void
 create_pager_window (WnckScreen *screen,
                      GtkOrientation orientation)
 {
   GtkWidget *win;
   GtkWidget *pager;
-  
-  win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  GtkWidget *mode_toggle;
+  GtkWidget *vbox;
 
+  win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  
   gtk_window_stick (GTK_WINDOW (win));
 #if 0
   wnck_gtk_window_set_dock_type (GTK_WINDOW (win));
@@ -31,8 +43,16 @@
   wnck_pager_set_orientation (WNCK_PAGER (pager), orientation);
   wnck_pager_set_n_rows (WNCK_PAGER (pager), 3);
   wnck_pager_set_shadow_type (WNCK_PAGER (pager), GTK_SHADOW_IN);
-  
-  gtk_container_add (GTK_CONTAINER (win), pager);
+
+  mode_toggle = gtk_toggle_button_new_with_label ("toggle mode");
+  g_signal_connect (mode_toggle, "toggled",
+                     G_CALLBACK (mode_toggle_cb),
+		    pager);
+
+  vbox = gtk_vbox_new(FALSE, 0);
+  gtk_box_pack_start_defaults(GTK_BOX(vbox), pager);
+  gtk_box_pack_start_defaults(GTK_BOX(vbox), mode_toggle);
+  gtk_container_add (GTK_CONTAINER (win), vbox);
   
   gtk_widget_show_all (win);
 }
@@ -41,7 +61,6 @@
 main (int argc, char **argv)
 {
   WnckScreen *screen;
-  
   gtk_init (&argc, &argv);
 
   screen = wnck_screen_get_default ();
