Header bar
This commit is contained in:
parent
0f090a9fb9
commit
4e80eb6c0f
12
source/app.d
12
source/app.d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user