From c8d4d24425aaf4ad8fc020c1975ea146402bf516 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Wed, 17 Jul 2013 09:21:08 -0400 Subject: [PATCH] docs: add filename hints for getting started examples --- docs/reference/gtk/getting_started.xml | 82 +++++++++++++++----------- 1 file changed, 46 insertions(+), 36 deletions(-) diff --git a/docs/reference/gtk/getting_started.xml b/docs/reference/gtk/getting_started.xml index 9ca8e20f30..bbfc17a1c9 100644 --- a/docs/reference/gtk/getting_started.xml +++ b/docs/reference/gtk/getting_started.xml @@ -23,17 +23,17 @@ - - - FIXME: MISSING XINCLUDE CONTENT - - + + Create a new file with the following content named example-0.c. + FIXME: MISSING XINCLUDE CONTENT + - You can compile the program above with GCC using: - - - gcc `pkg-config --cflags gtk+-3.0` -o window-default window-default.c `pkg-config --libs gtk+-3.0` - + + You can compile the program above with GCC using: + + gcc `pkg-config --cflags gtk+-3.0` -o example-0 example-0.c `pkg-config --libs gtk+-3.0` + + For more information on how to compile a GTK+ application, please refer to the Compiling GTK+ Applications @@ -108,12 +108,17 @@ Hello World in GTK+ - - - FIXME: MISSING XINCLUDE CONTENT - - + Create a new file with the following content named example-1.c. + + FIXME: MISSING XINCLUDE CONTENT + + + You can compile the program above with GCC using: + + gcc `pkg-config --cflags gtk+-3.0` -o example-1 example-1.c `pkg-config --libs gtk+-3.0` + + @@ -139,12 +144,15 @@ Packing buttons - - - FIXME: MISSING XINCLUDE CONTENT - - + Create a new file with the following content named example-2.c. + FIXME: MISSING XINCLUDE CONTENT + + You can compile the program above with GCC using: + + gcc `pkg-config --cflags gtk+-3.0` -o example-2 example-2.c `pkg-config --libs gtk+-3.0` + + @@ -177,12 +185,15 @@ Drawing in response to input - - - FIXME: MISSING XINCLUDE CONTENT - - + Create a new file with the following content named example-3.c. + FIXME: MISSING XINCLUDE CONTENT + + You can compile the program above with GCC using: + + gcc `pkg-config --cflags gtk+-3.0` -o example-3 example-3.c `pkg-config --libs gtk+-3.0` + + @@ -198,18 +209,17 @@ Packing buttons with GtkBuilder - - - FIXME: MISSING XINCLUDE CONTENT - - - The builder.ui file looks like this: - - - FIXME: MISSING XINCLUDE CONTENT - - + Create a new file with the following content named example-4.c. + FIXME: MISSING XINCLUDE CONTENT + Create a new file with the following content named builder.ui. + FIXME: MISSING XINCLUDE CONTENT + + You can compile the program above with GCC using: + + gcc `pkg-config --cflags gtk+-3.0` -o example-4 example-4.c `pkg-config --libs gtk+-3.0` + + Note that GtkBuilder can also be used to construct objects that are not widgets, such as tree models, adjustments, etc.