From 88645348922d022ad92b0675f57ec17c19650726 Mon Sep 17 00:00:00 2001 From: BST 1998 Tony Gale Date: Mon, 27 Jul 1998 08:21:40 +0000 Subject: GtkTree section from David Huggins-Daines , add Mon Jul 27 09:18:13 BST 1998 Tony Gale * docs/gtk_tut.sgml: GtkTree section from David Huggins-Daines , add a GtkText widget example * examples/text/* example/tree/* : new examples for the GtkTree and GtkText widgets --- ChangeLog | 8 + ChangeLog.pre-2-0 | 8 + ChangeLog.pre-2-10 | 8 + ChangeLog.pre-2-2 | 8 + ChangeLog.pre-2-4 | 8 + ChangeLog.pre-2-6 | 8 + ChangeLog.pre-2-8 | 8 + docs/gtk_tut.sgml | 9607 ++++++++++++++++++++++++++------------------ docs/tutorial/gtk_tut.sgml | 9607 ++++++++++++++++++++++++++------------------ examples/text/Makefile | 8 + examples/text/text.c | 181 + examples/tree/Makefile | 8 + examples/tree/tree.c | 178 + 13 files changed, 11925 insertions(+), 7720 deletions(-) create mode 100644 examples/text/Makefile create mode 100644 examples/text/text.c create mode 100644 examples/tree/Makefile create mode 100644 examples/tree/tree.c diff --git a/ChangeLog b/ChangeLog index 1bdf8ad760..16f2ca96fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Mon Jul 27 09:18:13 BST 1998 Tony Gale + + * docs/gtk_tut.sgml: GtkTree section from + David Huggins-Daines , + add a GtkText widget example + * examples/text/* example/tree/* : new examples for the + GtkTree and GtkText widgets + Mon Jul 27 00:46:21 CDT 1998 Shawn T. Amundson * Released GTK+ 1.1.0 diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 1bdf8ad760..16f2ca96fd 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,11 @@ +Mon Jul 27 09:18:13 BST 1998 Tony Gale + + * docs/gtk_tut.sgml: GtkTree section from + David Huggins-Daines , + add a GtkText widget example + * examples/text/* example/tree/* : new examples for the + GtkTree and GtkText widgets + Mon Jul 27 00:46:21 CDT 1998 Shawn T. Amundson * Released GTK+ 1.1.0 diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1bdf8ad760..16f2ca96fd 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,11 @@ +Mon Jul 27 09:18:13 BST 1998 Tony Gale + + * docs/gtk_tut.sgml: GtkTree section from + David Huggins-Daines , + add a GtkText widget example + * examples/text/* example/tree/* : new examples for the + GtkTree and GtkText widgets + Mon Jul 27 00:46:21 CDT 1998 Shawn T. Amundson * Released GTK+ 1.1.0 diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 1bdf8ad760..16f2ca96fd 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,11 @@ +Mon Jul 27 09:18:13 BST 1998 Tony Gale + + * docs/gtk_tut.sgml: GtkTree section from + David Huggins-Daines , + add a GtkText widget example + * examples/text/* example/tree/* : new examples for the + GtkTree and GtkText widgets + Mon Jul 27 00:46:21 CDT 1998 Shawn T. Amundson * Released GTK+ 1.1.0 diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 1bdf8ad760..16f2ca96fd 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,11 @@ +Mon Jul 27 09:18:13 BST 1998 Tony Gale + + * docs/gtk_tut.sgml: GtkTree section from + David Huggins-Daines , + add a GtkText widget example + * examples/text/* example/tree/* : new examples for the + GtkTree and GtkText widgets + Mon Jul 27 00:46:21 CDT 1998 Shawn T. Amundson * Released GTK+ 1.1.0 diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 1bdf8ad760..16f2ca96fd 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,11 @@ +Mon Jul 27 09:18:13 BST 1998 Tony Gale + + * docs/gtk_tut.sgml: GtkTree section from + David Huggins-Daines , + add a GtkText widget example + * examples/text/* example/tree/* : new examples for the + GtkTree and GtkText widgets + Mon Jul 27 00:46:21 CDT 1998 Shawn T. Amundson * Released GTK+ 1.1.0 diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 1bdf8ad760..16f2ca96fd 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,11 @@ +Mon Jul 27 09:18:13 BST 1998 Tony Gale + + * docs/gtk_tut.sgml: GtkTree section from + David Huggins-Daines , + add a GtkText widget example + * examples/text/* example/tree/* : new examples for the + GtkTree and GtkText widgets + Mon Jul 27 00:46:21 CDT 1998 Shawn T. Amundson * Released GTK+ 1.1.0 diff --git a/docs/gtk_tut.sgml b/docs/gtk_tut.sgml index fe93a7cbac..d519ddbfc6 100644 --- a/docs/gtk_tut.sgml +++ b/docs/gtk_tut.sgml @@ -10,7 +10,7 @@ name="<imain@gtk.org>">, Tony Gale -June 24th, 1998 +July 25th, 1998 Introduction @@ -70,6 +70,9 @@ You can also view other sources of GTK information on http://www.gtk.org/ GTK uses GNU autoconf for configuration. Once untar'd, type ./configure --help to see a list of options. +Th GTK source distribution also contains the complete source to all of the +examples used in this tutorial, along with Makefiles to aid compilation. + To begin our introduction to GTK, we'll start with the simplest program possible. This program will create a 200x200 pixel window and has no way of exiting except to be @@ -272,6 +275,9 @@ directories for the compiler to look in, and gtk-config --libs will output the list of libraries for the compiler to link with and the directories to find them in. +Note that the type of single quote used in the compile command above +is significant. + The libraries that are usually linked in are: The GTK library (-lgtk), the widget library, based on top of GDK. @@ -985,6 +991,7 @@ yourself and play with it. /* example-start packbox packbox.c */ +#include #include "gtk/gtk.h" void @@ -5705,4227 +5712,6063 @@ Please see the GtkList example on this, which covers the usage of a GtkListItem as well. -Menu Widgets + Tree Widget