C Tiffany Antopolski tiffany.antopolski@gmail.com Bastian Ilso bastianilso@gnome.org Tutorials and code samples in C. Fran Dieguez frandieguez@gnome.org 2012-2013. Platform Demos in C
Prerequisites

To compile these platform demos you will need a C compiler, for example gcc. You will also need GTK+ 3 including headers and pkg-config files. Linux distributions usually abstract GTK+ 3 headers and pkg-config files into separate packages called gtk3-devel, gtk3-dev or similar.

Guidelines for new developers

Beyond the prerequisites mentioned above, several tools has been developed to assist you further in developing your GNOME application. GNOME also recommends a specific coding style and conventions which this section will elaborate further upon.

Coding Style

Most applications in the GNOME project is written in the GNU style of indentation. The tutorials and code examples presented are following this convention and you are recommended to do so too.

Executing Code

Para executar os exemplos de código

Copie e pegue o código en nomedeficheiro.c

Escriba no terminal

gcc filename.c `pkg-config --cflags --libs gtk+-3.0` -o filename ./nome_ficheiro

For more information about compiling GTK+ programs see Compiling GTK+ Applications on UNIX.

Titoriais
Widget Code Examples
Xanelas

Widgets de visualización
Botóns e casillas
Entrada de datos numérica e de texto
Editor de texto multiliña
Widget TreeView
Selectores
Selectores de ficheiros
Selectores de tipos de letra
Selectores de color
Contedores da distribución
Adornos
Desprazamento
Varios