summaryrefslogtreecommitdiff
path: root/examples/clist
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/clist
parent6d6d3a59b88c31fefae4a7de5bc190e056c5417e (diff)
downloadgdk-pixbuf-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/clist')
-rw-r--r--examples/clist/clist.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/clist/clist.c b/examples/clist/clist.c
index 430deb268..69a252dee 100644
--- a/examples/clist/clist.c
+++ b/examples/clist/clist.c
@@ -45,7 +45,7 @@ gint main (int argc, gchar *argv[])
NULL);
/* It isn't necessary to shadow the border, but it looks nice :) */
- gtk_clist_set_border(GTK_CLIST(clist), GTK_SHADOW_OUT);
+ gtk_clist_set_shadow_type (GTK_CLIST(clist), GTK_SHADOW_OUT);
/* What however is important, is that we set the column widths as
* they will never be right otherwise. Note that the columns are
@@ -53,10 +53,6 @@ gint main (int argc, gchar *argv[])
*/
gtk_clist_set_column_width (GTK_CLIST(clist), 0, 150);
- /* Scollbars _only when needed_ */
- gtk_clist_set_policy(GTK_CLIST(clist), GTK_POLICY_AUTOMATIC,
- GTK_POLICY_AUTOMATIC);
-
/* Add the GtkCList widget to the vertical box and show it. */
gtk_box_pack_start(GTK_BOX(vbox), clist, TRUE, TRUE, 0);
gtk_widget_show(clist);
@@ -97,7 +93,7 @@ gint main (int argc, gchar *argv[])
gtk_widget_show(window);
gtk_main();
- return 0;
+ return(0);
}
/* User clicked the "Add List" button. */