Création d'une Fenêtre
Description : ce programme crée tout simplement une fenêtre vide (ne contenant aucun objet à l'intérieur).
Aperçu :
Commande de compilation : si on a appelé le fichier 'programme.cc',
on compile le tout en tapant la commande :
g++ fenetre.cc -o fenetre `pkg-config gtkmm-2.4 --cflags --libs`
(le signe " ` " s'obtient avec la combinaison des touches AltGr+7).
On exécute avec ./programme.cc
Code source :
#include <gtkmm.h> int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); Gtk::Window window; Gtk::Main::run(window); return 0; }