Header bar

This commit is contained in:
Crom (Thibaut CHARLES) 2014-11-17 15:12:57 +01:00
parent 0f090a9fb9
commit 4e80eb6c0f

View File

@ -13,7 +13,8 @@ import gtk.Label;
import gtk.Entry;
import gtk.CellRenderer;
import gtk.CellRendererText;
import gtk.CellRendererSpin;
import gtk.HeaderBar;
import gtk.Button;
void[] Serialize(VT...)(VT data){
void[] ret;
@ -25,13 +26,20 @@ void[] Serialize(VT...)(VT data){
void main(string[] args)
{
auto twoda = new TwoDA("test.2da");
auto twoda = new TwoDA(args[1]);
Main.init(args);
auto window = new MainWindow("2DA-Edit");
auto header = new HeaderBar();
window.setTitlebar(header);
header.setTitle("2DAEdit");
header.setSubtitle(args[1]);
header.setProperty("show-close-button", true);
header.packEnd(new Button("coucou"));
GType type[];
type~=GType.STRING;