summaryrefslogtreecommitdiff
path: root/examples/scrolledwin
diff options
context:
space:
mode:
authorGMT 1998 Tony Gale <gale@gtk.org>1998-12-13 22:25:07 +0000
committerTony Gale <gale@src.gnome.org>1998-12-13 22:25:07 +0000
commit113448e030fa5a554354ce8a77771d8de44d5b02 (patch)
tree531e212a6beed1410e4dc5ec5c38a2d009042134 /examples/scrolledwin
parent6d6d3a59b88c31fefae4a7de5bc190e056c5417e (diff)
downloadgtk+-113448e030fa5a554354ce8a77771d8de44d5b02.tar.gz
Update the following sections to the current API: - Container Widgets -
Sun Dec 13 22:15:48 GMT 1998 Tony Gale <gale@gtk.org> * docs/gtk_tut.sgml: Update the following sections to the current API: - Container Widgets - CList Widget - List Widget - Tree Widget
Diffstat (limited to 'examples/scrolledwin')
-rw-r--r--examples/scrolledwin/scrolledwin.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/scrolledwin/scrolledwin.c b/examples/scrolledwin/scrolledwin.c
index f222d75101..29df87a9db 100644
--- a/examples/scrolledwin/scrolledwin.c
+++ b/examples/scrolledwin/scrolledwin.c
@@ -19,13 +19,13 @@ int main (int argc, char *argv[])
gtk_init (&argc, &argv);
/* Create a new dialog window for the scrolled window to be
- * packed into. A dialog is just like a normal window except it has a
- * vbox and a horizontal separator packed into it. It's just a shortcut
+ * packed into. A dialog is just like a normal window except it has a
+ * vbox and a horizontal separator packed into it. It's just a shortcut
* for creating dialogs */
window = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (window), "destroy",
(GtkSignalFunc) destroy, NULL);
- gtk_window_set_title (GTK_WINDOW (window), "dialog");
+ gtk_window_set_title (GTK_WINDOW (window), "GtkScrolledWindow example");
gtk_container_border_width (GTK_CONTAINER (window), 0);
gtk_widget_set_usize(window, 300, 300);
@@ -54,7 +54,8 @@ int main (int argc, char *argv[])
gtk_table_set_col_spacings (GTK_TABLE (table), 10);
/* pack the table into the scrolled window */
- gtk_container_add (GTK_CONTAINER (scrolled_window), table);
+ gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_window),
+ table);
gtk_widget_show (table);
/* this simply creates a grid of toggle buttons on the table