summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-03-24 05:27:00 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-03-24 05:27:00 +0000
commit102b1de4b4e7939e9fe513ee929bc073eaa11741 (patch)
tree84f168aee1ac87870cc2ab9315090c02b4d3e54e /docs
parentd362159181f550340709f46621e3da840cd5fb82 (diff)
downloadgtk+-102b1de4b4e7939e9fe513ee929bc073eaa11741.tar.gz
Use reversed arrow for menus ala Motif (and fix Options menus, which had X
Tue Mar 24 00:17:42 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkcombo.c gtk/gtkmenu.c: Use reversed arrow for menus ala Motif (and fix Options menus, which had X cursor before), and show normal arrow when inside ComboBox. * gtk/gtkfilesel.c: Various memory leaks removed, as pointed out by Mattias.Gronlund" <Mattias.Gronlund@sa.erisoft.se> * docs/gtk_tut.sgml: Change compiling explaination to refer to gtk-config. (From: johannes@nada.kth.se (Johannes Keukelaar))
Diffstat (limited to 'docs')
-rw-r--r--docs/gtk_tut.sgml22
-rw-r--r--docs/tutorial/gtk_tut.sgml22
2 files changed, 22 insertions, 22 deletions
diff --git a/docs/gtk_tut.sgml b/docs/gtk_tut.sgml
index 331e05e11c..76f0d19ff4 100644
--- a/docs/gtk_tut.sgml
+++ b/docs/gtk_tut.sgml
@@ -258,20 +258,20 @@ int main (int argc, char *argv[])
To compile use:
<tscreen><verb>
-gcc -Wall -g helloworld.c -o hello_world -L/usr/X11R6/lib \
- -lgtk -lgdk -lglib -lX11 -lXext -lm
+gcc -Wall -g helloworld.c -o hello_world `gtk-config --cflags` \
+ `gtk-config --libs`
</verb></tscreen>
<p>
-The libraries above must all be in your default search paths, if not, add
--L&lt;library directory&gt; and gcc will look in these directories for
-the needed
-libraries. For instance, on my Debian Linux system, I have to add
-<tt>-L/usr/X11R6/lib</> for it to find the X11 libraries.
-<p>
-The order of the libraries are significant. The linker has to know what
-functions it needs from a library before it processes it.
+
+This uses the program <tt>gtk-config</>, which comes with gtk. This
+program 'knows' what compiler switches are needed to compile programs
+that use gtk. <tt>gtk-config --cflags</> will output a list of include
+directories for the compiler to look in, and <tt>gtk-config --libs</>
+will output the list of libraries for the compiler to link with and
+the directories to find them in.
+
<p>
-The libraries we are linking in are:
+The libraries that are usually linked in are:
<itemize>
<item>The GTK library (-lgtk), the widget library, based on top of GDK.
<item>The GDK library (-lgdk), the Xlib wrapper.
diff --git a/docs/tutorial/gtk_tut.sgml b/docs/tutorial/gtk_tut.sgml
index 331e05e11c..76f0d19ff4 100644
--- a/docs/tutorial/gtk_tut.sgml
+++ b/docs/tutorial/gtk_tut.sgml
@@ -258,20 +258,20 @@ int main (int argc, char *argv[])
To compile use:
<tscreen><verb>
-gcc -Wall -g helloworld.c -o hello_world -L/usr/X11R6/lib \
- -lgtk -lgdk -lglib -lX11 -lXext -lm
+gcc -Wall -g helloworld.c -o hello_world `gtk-config --cflags` \
+ `gtk-config --libs`
</verb></tscreen>
<p>
-The libraries above must all be in your default search paths, if not, add
--L&lt;library directory&gt; and gcc will look in these directories for
-the needed
-libraries. For instance, on my Debian Linux system, I have to add
-<tt>-L/usr/X11R6/lib</> for it to find the X11 libraries.
-<p>
-The order of the libraries are significant. The linker has to know what
-functions it needs from a library before it processes it.
+
+This uses the program <tt>gtk-config</>, which comes with gtk. This
+program 'knows' what compiler switches are needed to compile programs
+that use gtk. <tt>gtk-config --cflags</> will output a list of include
+directories for the compiler to look in, and <tt>gtk-config --libs</>
+will output the list of libraries for the compiler to link with and
+the directories to find them in.
+
<p>
-The libraries we are linking in are:
+The libraries that are usually linked in are:
<itemize>
<item>The GTK library (-lgtk), the widget library, based on top of GDK.
<item>The GDK library (-lgdk), the Xlib wrapper.