Add paragraph with compiling instructions
This deprecates two places that also mention it
This commit is contained in:
parent
c87a1ea2fe
commit
a9a4287b35
@ -92,6 +92,10 @@
|
|||||||
developers are able to decide which one is most suitable for the task at
|
developers are able to decide which one is most suitable for the task at
|
||||||
hand.</para>
|
hand.</para>
|
||||||
|
|
||||||
|
<para>You can compile all the examples the standard GTK way on Linux. Just
|
||||||
|
use the <command>gcc `pkg-config --cflags --libs gtk+-3.0` -o treeviewtest
|
||||||
|
treeviewtest.c</command> command.</para>
|
||||||
|
|
||||||
<sect1 id="sec-TreeView-HelloWorld">
|
<sect1 id="sec-TreeView-HelloWorld">
|
||||||
<title>Hello World</title>
|
<title>Hello World</title>
|
||||||
|
|
||||||
@ -100,15 +104,7 @@
|
|||||||
url="treeview-tutorial.tar.gz"> treeview-tutorial.tar.gz</ulink>
|
url="treeview-tutorial.tar.gz"> treeview-tutorial.tar.gz</ulink>
|
||||||
tarball).</para>
|
tarball).</para>
|
||||||
|
|
||||||
<programlisting role="C">
|
<programlisting role="C">#include <gtk/gtk.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* Compile with:
|
|
||||||
* gcc -o helloworld helloworld.c `pkg-config --cflags --libs gtk+-2.0`
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
@ -5559,12 +5555,7 @@ custom_list_tree_model_init (GtkTreeModelIface *iface)
|
|||||||
<title>Working Example: Custom List Model Source Code</title>
|
<title>Working Example: Custom List Model Source Code</title>
|
||||||
|
|
||||||
<para>Here is the complete source code for the custom list model
|
<para>Here is the complete source code for the custom list model
|
||||||
presented <link linkend="sec-custom-model-list">above</link>. Compile
|
presented <link linkend="sec-custom-model-list">above</link>.</para>
|
||||||
with:</para>
|
|
||||||
|
|
||||||
<programlisting>
|
|
||||||
gcc -o customlist custom-list.c main.c `pkg-config --cflags --libs gtk+-2.0`
|
|
||||||
</programlisting>
|
|
||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
Loading…
Reference in New Issue
Block a user