gtk2/examples
GMT 1999 Tony Gale d5aed59bbc - Complete the ProgressBar API - Fix the CList example code
Mon Feb 22 08:45:10 GMT 1999 Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml:
          - Complete the ProgressBar API
          - Fix the CList example code

        * examples/clist/clist.c, examples/progressbar/progressbar.c:
           Update from tutorial
1999-02-22 08:51:02 +00:00
..
arrow - Complete documentation of Label widget API - New sections for the 1999-02-01 10:44:36 +00:00
aspectframe - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
base - re-write the GtkProgressBar section to the 1.1 API. - add an Appendix 1998-12-10 17:31:04 +00:00
buttonbox - Complete documentation of Label widget API - New sections for the 1999-02-01 10:44:36 +00:00
buttons - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
calendar forward declaration for gtk_window_paint declare xid_ht static get the 1998-11-07 16:12:37 +00:00
clist - Complete the ProgressBar API - Fix the CList example code 1999-02-22 08:51:02 +00:00
entry - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
eventbox - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
filesel - re-write the GtkProgressBar section to the 1.1 API. - add an Appendix 1998-12-10 17:31:04 +00:00
fixed examples/fixed/*, examples/frame/* - Examples from the Tutorial 1999-01-29 09:53:14 +00:00
frame examples/fixed/*, examples/frame/* - Examples from the Tutorial 1999-01-29 09:53:14 +00:00
gtkdial - re-write the GtkProgressBar section to the 1.1 API. - add an Appendix 1998-12-10 17:31:04 +00:00
helloworld - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
helloworld2 - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
label - Complete documentation of Label widget API - New sections for the 1999-02-01 10:44:36 +00:00
list - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
menu update to new examples 1999-02-01 14:47:05 +00:00
notebook - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
packbox - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
packer - re-write the GtkProgressBar section to the 1.1 API. - add an Appendix 1998-12-10 17:31:04 +00:00
paned - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
pixmap - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
progressbar - Complete the ProgressBar API - Fix the CList example code 1999-02-22 08:51:02 +00:00
radiobuttons - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
rangewidgets - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
rulers - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
scribble-simple - re-write the GtkProgressBar section to the 1.1 API. - add an Appendix 1998-12-10 17:31:04 +00:00
scrolledwin - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
selection - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
spinbutton new sections on Layout and SpinButton [nice widget] 1999-02-02 10:12:52 +00:00
statusbar - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
table - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
text - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
tictactoe - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
tree - Replace all uses of deprecated functions. - Replace menufactory example 1999-01-28 10:35:40 +00:00
wheelbarrow - re-write the GtkProgressBar section to the 1.1 API. - add an Appendix 1998-12-10 17:31:04 +00:00
extract.awk Start mass update for GTK 1.1 Look for the best version of awk Fix FD leak 1998-12-07 15:19:00 +00:00
extract.sh Start mass update for GTK 1.1 Look for the best version of awk Fix FD leak 1998-12-07 15:19:00 +00:00
find-examples.sh Changes for GTK+ 0.99.10 1998-04-08 04:07:01 +00:00
Makefile add SpinButton example 1999-02-08 13:10:10 +00:00
README.1ST new file to explain how the code examples should be extracted from the 1998-06-23 11:15:20 +00:00

GTK Example Code - Tony Gale <gale@gtk.org> 980623
--------------------------------------------------

I have written an awk script to automatically extract the code
examples from the GTK Tutorial (in sgml), so they only have to be
changed in one place.

It's called 'extract.awk', and there is a shell wrapper to invoke
it called 'extract.sh'

It takes the following switches:
 -c : Just do checking rather than output files
 -f <filename> : Extract a specific file
 -d : Extract file(s) to current directory

Without the -d switch, the code will be placed in the appropriate
sub-directory. Those sub-directories will be created if they do not
exist.

Without the -f switch, all code examples will be extracted.

The shell wrapper assumes that the GTK Tutorial is in the 
file "../docs/gtk_tut.sgml"

It works by looking for sections of text in the tutorial surrounded
by, for example:

/* example-start helloworld helloworld.c */

and

/* example-end */

Where "helloworld" is the directory into which the file will be
placed (which can also be a directory spec like hello/hello1), and
"helloworld.c" is the file name for the code.

So, the code between these lines would be extracted to the file
helloworld/helloworld.c

It also handles replacing the sgml tag '&amp;' with '&'