Label (Vala) Tiffany Antopolski tiffany.antopolski@gmail.com 2012 Un élément graphique qui affiche du texte 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 Étiquette

Une étiquette simple

public class MyWindow : Gtk.ApplicationWindow { internal MyWindow (MyApplication app) { Object (application: app, title: "Welcome to GNOME"); var label = new Gtk.Label ("Hello GNOME!"); this.add (label); this.set_default_size (200, 100); this.show_all (); } } public class MyApplication : Gtk.Application { protected override void activate () { new MyWindow (this).show (); } internal MyApplication () { Object (application_id: "org.example.MyApplication"); } } public int main (string[] args) { return new MyApplication ().run (args); }

Dans cet exemple, les éléments suivants sont utilisés :

Gtk.Application

Gtk.ApplicationWindow

Gtk.Label