diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-08-14 16:08:41 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-08-14 16:08:41 +0200 |
commit | 87e740056c145856fa2c47fd08e85c0bc2670984 (patch) | |
tree | 34515cf4a49ad30c7c94f4a0b4fe76da48b526f1 | |
parent | c5f34850ad648fda2a2fec30b40685c3651ea395 (diff) | |
download | biomed-87e740056c145856fa2c47fd08e85c0bc2670984.tar.gz biomed-87e740056c145856fa2c47fd08e85c0bc2670984.tar.bz2 biomed-87e740056c145856fa2c47fd08e85c0bc2670984.zip |
Added spin button for draw radius.
-rw-r--r-- | main.go | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -144,12 +144,19 @@ func (g *GUI) mkToolbox() *gtk.ScrolledWindow { vbox.PackStart(g.showbiomes, false, false, 3) fill := gtk.NewRadioButtonWithLabel(nil, "Fill") - draw := gtk.NewRadioButtonWithLabel(fill.GetGroup(), "Draw") fill.SetActive(true) fill.Connect("toggled", g.mkUpdateToolFx(fill, ToolFill)) + + 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(gtk.NewLabel("Radius:"), false, false, 3) + drawHBox.PackEnd(drawRadius, false, false, 3) draw.Connect("toggled", g.mkUpdateToolFx(draw, ToolDraw)) + vbox.PackStart(fill, false, false, 3) - vbox.PackStart(draw, false, false, 3) + vbox.PackStart(drawHBox, false, false, 3) vbox.PackStart(gtk.NewHSeparator(), false, false, 3) vbox.PackStart(labelCustomFont("Biomes", "Sans Bold 14"), false, false, 3) |