diff options
author | GMT 1998 Tony Gale <gale@gtk.org> | 1998-12-13 22:25:07 +0000 |
---|---|---|
committer | Tony Gale <gale@src.gnome.org> | 1998-12-13 22:25:07 +0000 |
commit | 113448e030fa5a554354ce8a77771d8de44d5b02 (patch) | |
tree | 531e212a6beed1410e4dc5ec5c38a2d009042134 /examples/paned | |
parent | 6d6d3a59b88c31fefae4a7de5bc190e056c5417e (diff) | |
download | gtk+-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/paned')
-rw-r--r-- | examples/paned/paned.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/paned/paned.c b/examples/paned/paned.c index 86c31081aa..249d568ae9 100644 --- a/examples/paned/paned.c +++ b/examples/paned/paned.c @@ -22,7 +22,8 @@ create_list (void) /* Create a new list and put it in the scrolled window */ list = gtk_list_new (); - gtk_container_add (GTK_CONTAINER(scrolled_window), list); + gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_window), + list); gtk_widget_show (list); /* Add some messages to the window */ @@ -114,11 +115,16 @@ main (int argc, char *argv[]) gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), NULL); gtk_container_border_width (GTK_CONTAINER (window), 10); - + gtk_widget_set_usize (GTK_WIDGET(window), 450, 400); + /* create a vpaned widget and add it to our toplevel window */ vpaned = gtk_vpaned_new (); gtk_container_add (GTK_CONTAINER(window), vpaned); + gtk_paned_set_handle_size (GTK_PANED(vpaned), + 10); + gtk_paned_set_gutter_size (GTK_PANED(vpaned), + 15); gtk_widget_show (vpaned); /* Now create the contents of the two halves of the window */ |