Skip to content

Commit

Permalink
examples/declarative: Adjust to TabWidget changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed Oct 6, 2012
1 parent f747e74 commit 3405667
Showing 1 changed file with 7 additions and 41 deletions.
48 changes: 7 additions & 41 deletions examples/declarative/declarative.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,49 +266,15 @@ func main() {
ToolBarActions: toolBarActions,
MinSize: Size{600, 400},
Size: Size{1024, 768},
Layout: HBox{},
Layout: HBox{MarginsZero: true},
Children: []Widget{
TabWidget{
Pages: []TabPage{
TabPage{
Title: "golang.org/doc/",
Layout: VBox{},
Children: []Widget{
Splitter{
Orientation: Vertical,
Children: []Widget{
WebView{URL: "http://golang.org/doc/"},
TextEdit{},
},
},
},
},
TabPage{
Title: "golang.org/ref/",
Layout: VBox{},
Children: []Widget{
Splitter{
Orientation: Vertical,
Children: []Widget{
WebView{URL: "http://golang.org/ref/"},
TextEdit{},
},
},
},
},
TabPage{
Title: "golang.org/pkg/",
Layout: VBox{},
Children: []Widget{
Splitter{
Orientation: Vertical,
Children: []Widget{
WebView{URL: "http://golang.org/pkg/"},
TextEdit{},
},
},
},
},
MarginsZero: true,
PageTitles: []string{"golang.org/doc/", "golang.org/ref/", "golang.org/pkg/"},
Pages: []Widget{
WebView{URL: "http://golang.org/doc/"},
WebView{URL: "http://golang.org/ref/"},
WebView{URL: "http://golang.org/pkg/"},
},
},
},
Expand Down

0 comments on commit 3405667

Please sign in to comment.