# C

Tiffany Antopolski
tiffany.antopolski@gmail.com
Bastian Ilso
bastianilso@gnome.org

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. As a special exception, the copyright holders give you permission to copy, modify, and distribute the example code contained in this documentation under the terms of your choosing, without restriction.

Tutorials and code samples in C.
Luc Rebert,
traduc@rebert.name 2011
Alain Lojewski,
allomervan@gmail.com 2011-2012
Luc Pionchon
pionchon.luc@gmail.com 2011
Bruno Brouard
annoa.b@gmail.com 2011-12
Luis Menina
liberforce@freeside.fr 2014

# 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.

## Recommended tools

DevHelp: An API documentation browser for GNOME.

A GNOME IDE (Integrated Development Environment). An IDE can assist you in writing and debugging C code, for example Builder or Anjuta.

Glade: A user interface designer for GTK+ Applications.

An IRC Client, for example Polari or Empathy. If you run into problems while following the beginner tutorials, join #gnome on irc.gnome.org.

## 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

Pour exécuter les exemples de code :

Copiez et collez le code dans nomdufichier.c

Saisissez dans le terminal :

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

    ./nomdufichier

Pour plus d'informations, consultez Compiler des applications GTK+ sur UNIX.

# Tutoriels

# Widget Code Examples

## Fenêtres

## Éléments graphiques d'affichage

## Boutons et inverseurs

## Entrée de données numériques et de texte

## Éditeur de texte multiligne

## Menu, boîte combinée et éléments graphiques de barre d'outils

## Élément graphique arborescent

## Sélecteurs

### Sélecteurs de fichiers

### Sélecteurs de polices

### Sélecteurs de couleurs

## Conteneurs d'agencement

## Décorations

## Barre de défilement

## Divers