This simple program contains all the essential elements of a GTK+ application. It doesn't contain any Gnome features; but since Gnome builds on GTK+, the same concepts will apply.