diff options
author | GMT 1998 Tony Gale <gale@gtk.org> | 1998-12-07 15:19:00 +0000 |
---|---|---|
committer | Tony Gale <gale@src.gnome.org> | 1998-12-07 15:19:00 +0000 |
commit | 337bdee253125b60eb38cab7e1d4916e8dd66d4f (patch) | |
tree | 4f4c6f771a02135a6796bd71c099059546e7f4d6 /examples/base | |
parent | 621beb8aaf93c8cfe234723d7001e114ac5a8345 (diff) | |
download | gtk+-337bdee253125b60eb38cab7e1d4916e8dd66d4f.tar.gz |
Start mass update for GTK 1.1 Look for the best version of awk Fix FD leak
Mon Dec 7 15:15:06 GMT 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: Start mass update for GTK 1.1
* examples/extract.sh: Look for the best version of awk
* examples/extract.awk: Fix FD leak
* example/base: minimal example from Tutorial
Diffstat (limited to 'examples/base')
-rw-r--r-- | examples/base/Makefile | 8 | ||||
-rw-r--r-- | examples/base/base.c | 19 |
2 files changed, 27 insertions, 0 deletions
diff --git a/examples/base/Makefile b/examples/base/Makefile new file mode 100644 index 0000000000..c6a3b9057b --- /dev/null +++ b/examples/base/Makefile @@ -0,0 +1,8 @@ + +CC = gcc + +base: base.c + $(CC) `gtk-config --cflags` base.c -o base `gtk-config --libs` + +clean: + rm -f *.o base diff --git a/examples/base/base.c b/examples/base/base.c new file mode 100644 index 0000000000..aefd0c0621 --- /dev/null +++ b/examples/base/base.c @@ -0,0 +1,19 @@ +/* example-start base base.c */ + +#include <gtk/gtk.h> + +int main( int argc, + char *argv[] ) +{ + GtkWidget *window; + + gtk_init (&argc, &argv); + + window = gtk_window_new (GTK_WINDOW_TOPLEVEL); + gtk_widget_show (window); + + gtk_main (); + + return 0; +} +/* example-end */ |