Mercurial > godwindows
changeset 30:cfd51f508718
Don't need to create new local variables, we want to save them
globally... fixes overlapping font issues on GTK.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Thu, 21 Feb 2013 03:51:28 -0600 |
parents | 5ffeab6763c3 |
children | 7ab5d6943b15 |
files | src/dwtest/dwtest.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dwtest/dwtest.go Thu Feb 21 02:41:33 2013 -0600 +++ b/src/dwtest/dwtest.go Thu Feb 21 03:51:28 2013 -0600 @@ -780,7 +780,7 @@ /* create render box for number pixmap */ textbox1 = dw.Render_new(100); dw.Window_set_font(textbox1, FIXEDFONT); - font_width, font_height := dw.Font_text_extents_get(textbox1, nil, "(g"); + font_width, font_height = dw.Font_text_extents_get(textbox1, nil, "(g"); font_width = font_width / 2; vscrollbox := dw.Box_new(dw.VERT, 0); dw.Box_pack_start(vscrollbox, textbox1, font_width * width1, font_height * rows, dw.FALSE, dw.TRUE, 0);