summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-17 11:42:54 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-17 11:44:40 +0200
commit3e4f170006679f76db24c9144577083a5913b6b6 (patch)
treeddb142223a06a966dd7109b7f6d05f67144f20c0
parent0a53071671d7baca8cf70aa197881209160becc4 (diff)
downloadbiomed-3e4f170006679f76db24c9144577083a5913b6b6.tar.gz
biomed-3e4f170006679f76db24c9144577083a5913b6b6.tar.bz2
biomed-3e4f170006679f76db24c9144577083a5913b6b6.zip
Improved main window layout.
* Radio buttons for tools are now aligned properly. * Removed spacing in the main VBox (looked rather strange IMHO).
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 42135af..016e9e3 100644
--- a/main.go
+++ b/main.go
@@ -161,7 +161,7 @@ func (g *GUI) mkToolbox() *gtk.ScrolledWindow {
draw := gtk.NewRadioButtonWithLabel(fill.GetGroup(), "Draw")
drawRadius := gtk.NewSpinButtonWithRange(1, 20, 1)
drawHBox := gtk.NewHBox(false, 0)
- drawHBox.PackStart(draw, true, true, 3)
+ drawHBox.PackStart(draw, true, true, 0)
drawHBox.PackStart(gtk.NewLabel("Radius:"), false, false, 3)
drawHBox.PackEnd(drawRadius, false, false, 3)
draw.Connect("toggled", g.mkUpdateToolFx(draw, NewDrawTool(func() int { return int(drawRadius.GetValue()) })))
@@ -197,7 +197,7 @@ func (g *GUI) Init() {
menubar := g.mkMenuBar()
vbox := gtk.NewVBox(false, 0)
- vbox.PackStart(menubar, false, false, 3)
+ vbox.PackStart(menubar, false, false, 0)
hbox := gtk.NewHBox(false, 0)
@@ -207,11 +207,11 @@ func (g *GUI) Init() {
toolbox := g.mkToolbox()
hbox.PackEnd(toolbox, false, false, 3)
- vbox.PackStart(hbox, true, true, 3)
+ vbox.PackStart(hbox, true, true, 0)
g.statusbar = gtk.NewStatusbar()
g.statusContext = g.statusbar.GetContextId("mapinfo")
- vbox.PackEnd(g.statusbar, false, false, 3)
+ vbox.PackEnd(g.statusbar, false, false, 0)
g.window.Add(vbox)
g.window.SetDefaultSize(800, 600)