diff options
author | GMT 1998 Tony Gale <gale@gtk.org> | 1998-12-10 17:31:04 +0000 |
---|---|---|
committer | Tony Gale <gale@src.gnome.org> | 1998-12-10 17:31:04 +0000 |
commit | 3821880398cc553882b9f1fc5905046518b9cd4e (patch) | |
tree | 88867e7f0ad2d19deeb5f850e920827b4232a6ef /examples/list | |
parent | 600ef4e7d1b45dd4cd88606b6da402ffe2a885bf (diff) | |
download | gtk+-3821880398cc553882b9f1fc5905046518b9cd4e.tar.gz |
- re-write the GtkProgressBar section to the 1.1 API. - add an Appendix
Thu Dec 10 17:58:49 GMT 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml:
- re-write the GtkProgressBar section to the 1.1 API.
- add an Appendix listing all the signals
(apologies to TimJ for taking so long in using his hard work
in automating the extraction - thanx Tim).
* examples/*: bring them all upto the tutorial versions
Diffstat (limited to 'examples/list')
-rw-r--r-- | examples/list/list.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/examples/list/list.c b/examples/list/list.c index 6bed623605..abf81f2c08 100644 --- a/examples/list/list.c +++ b/examples/list/list.c @@ -1,6 +1,4 @@ -/* This file extracted from the GTK tutorial. */ - -/* list.c */ +/* example-start list list.c */ /* include the gtk+ header files * include stdio.h, we need that for the printf() function @@ -65,7 +63,7 @@ gint main (int argc, gchar *argv[]) gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show(vbox); - /* this is the scolled window to put the GtkList widget inside */ + /* this is the scrolled window to put the GtkList widget inside */ scrolled_window=gtk_scrolled_window_new(NULL, NULL); gtk_widget_set_usize(scrolled_window, 250, 150); gtk_container_add(GTK_CONTAINER(vbox), scrolled_window); @@ -94,7 +92,7 @@ gint main (int argc, gchar *argv[]) gtk_widget_show(frame); /* connect the sigh_button_event() signal handler to the GtkList - * wich will handle the "arresting" of list items + * which will handle the "arresting" of list items */ gtk_signal_connect(GTK_OBJECT(gtklist), "button_release_event", @@ -107,8 +105,8 @@ gint main (int argc, gchar *argv[]) gtk_container_add(GTK_CONTAINER(vbox), separator); gtk_widget_show(separator); - /* finaly create a button and connect itīs "clicked" signal - * to the destroyment of the window + /* finally create a button and connect itīs "clicked" signal + * to the destruction of the window */ button=gtk_button_new_with_label("Close"); gtk_container_add(GTK_CONTAINER(vbox), button); @@ -165,7 +163,7 @@ gint main (int argc, gchar *argv[]) } gtk_list_append_items(GTK_LIST(gtklist), dlist); - /* finaly we want to see the window, donīt we? ;) + /* finally we want to see the window, don't we? ;) */ gtk_widget_show(window); @@ -204,7 +202,7 @@ sigh_button_event (GtkWidget *gtklist, else new_prisoner=NULL; - /* look for already prisoned list items, we + /* look for already imprisoned list items, we * will put them back into the list * remember to free the doubly linked list that * gtk_container_children() returns @@ -282,3 +280,4 @@ sigh_print_selection (GtkWidget *gtklist, } g_print("\n"); } +/* example-end */ |