From a9a4287b35f0e56885d2a25efca8188678ef92d9 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 24 Jul 2014 00:10:12 +0200 Subject: [PATCH] Add paragraph with compiling instructions This deprecates two places that also mention it --- treeview-tutorial.xml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/treeview-tutorial.xml b/treeview-tutorial.xml index 67788c2..9289fb6 100644 --- a/treeview-tutorial.xml +++ b/treeview-tutorial.xml @@ -92,6 +92,10 @@ developers are able to decide which one is most suitable for the task at hand. + You can compile all the examples the standard GTK way on Linux. Just + use the gcc `pkg-config --cflags --libs gtk+-3.0` -o treeviewtest + treeviewtest.c command. + Hello World @@ -100,15 +104,7 @@ url="treeview-tutorial.tar.gz"> treeview-tutorial.tar.gz tarball). - - -/* - * Compile with: - * gcc -o helloworld helloworld.c `pkg-config --cflags --libs gtk+-2.0` - * - */ - -#include <gtk/gtk.h> + #include <gtk/gtk.h> enum { @@ -5559,12 +5555,7 @@ custom_list_tree_model_init (GtkTreeModelIface *iface) Working Example: Custom List Model Source Code Here is the complete source code for the custom list model - presented above. Compile - with: - - - gcc -o customlist custom-list.c main.c `pkg-config --cflags --libs gtk+-2.0` - + presented above.