gtk_examples
所属分类:Linux/Unix编程
开发工具:Unix_Linux
文件大小:90KB
下载次数:47
上传日期:2009-06-23 10:17:57
上 传 者:
jfeagle
说明: gtk+2.0 源码(包括所以控件的使用,编译)
(gtk+2.0 sample code)
文件列表:
gtk_examples\arrow\arrow.c (1855, 2002-06-25)
gtk_examples\arrow\Makefile (271, 2002-06-25)
gtk_examples\arrow\_desktop.ini (8, 2006-08-09)
gtk_examples\aspectframe\aspectframe.c (1386, 2002-06-25)
gtk_examples\aspectframe\Makefile (296, 2002-06-25)
gtk_examples\aspectframe\_desktop.ini (8, 2006-08-09)
gtk_examples\base\base.c (259, 2002-06-25)
gtk_examples\base\Makefile (261, 2002-06-25)
gtk_examples\base\_desktop.ini (8, 2006-08-09)
gtk_examples\buttonbox\buttonbox.c (3582, 2002-06-25)
gtk_examples\buttonbox\Makefile (286, 2002-06-25)
gtk_examples\buttonbox\_desktop.ini (8, 2006-08-09)
gtk_examples\buttons\buttons.c (2225, 2002-06-25)
gtk_examples\buttons\info.xpm (2039, 2002-06-25)
gtk_examples\buttons\Makefile (284, 2002-06-25)
gtk_examples\buttons\_desktop.ini (8, 2006-08-09)
gtk_examples\calendar\calendar.c (12173, 2002-06-25)
gtk_examples\calendar\Makefile (276, 2002-06-25)
gtk_examples\calendar\_desktop.ini (8, 2006-08-09)
gtk_examples\clist\clist.c (5781, 2005-06-04)
gtk_examples\clist\Makefile (256, 2005-06-04)
gtk_examples\clist\_desktop.ini (8, 2006-08-09)
gtk_examples\colorsel\colorsel.c (3320, 2002-06-25)
gtk_examples\colorsel\_desktop.ini (8, 2006-08-09)
gtk_examples\entry\entry.c (3360, 2002-06-25)
gtk_examples\entry\Makefile (266, 2002-06-25)
gtk_examples\entry\_desktop.ini (8, 2006-08-09)
gtk_examples\eventbox\eventbox.c (1492, 2002-06-25)
gtk_examples\eventbox\Makefile (281, 2002-06-25)
gtk_examples\eventbox\_desktop.ini (8, 2006-08-09)
gtk_examples\extract.awk (1717, 2002-06-25)
gtk_examples\extract.sh (728, 2002-06-25)
gtk_examples\filesel\filesel.c (1239, 2002-06-25)
gtk_examples\filesel\Makefile (276, 2002-06-25)
gtk_examples\filesel\_desktop.ini (8, 2006-08-09)
gtk_examples\find-examples.sh (183, 2002-06-25)
gtk_examples\fixed\fixed.c (1663, 2002-06-25)
gtk_examples\fixed\Makefile (266, 2002-06-25)
gtk_examples\fixed\_desktop.ini (8, 2006-08-09)
gtk_examples\frame\frame.c (1136, 2002-06-25)
... ...
GTK Example Code - Tony Gale ***0623
--------------------------------------------------
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 : 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 '&' with '&'
近期下载者:
相关文件:
收藏者: