diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-13 18:05:07 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-13 18:05:07 -0400 |
| commit | fb50badf00db0ba2da8a99aa75b489c620f8a971 (patch) | |
| tree | be2cf962c861c650607589cbb279364ccfd3107a /gtkcalls_unix.go | |
| parent | e4c27a4a725c898ffb674f5202295dc96ce05ff1 (diff) | |
Fixed Area test time label weirdness by making Labels truncate their text instead of word-wrapping on all platforms. This doesn't explain GTK+/Wayland, alas.
Diffstat (limited to 'gtkcalls_unix.go')
| -rw-r--r-- | gtkcalls_unix.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtkcalls_unix.go b/gtkcalls_unix.go index 158f5f9..f49263a 100644 --- a/gtkcalls_unix.go +++ b/gtkcalls_unix.go @@ -203,7 +203,11 @@ var _emptystring = [1]C.gchar{0} var emptystring = &_emptystring[0] func gtk_label_new() *C.GtkWidget { - return C.gtk_label_new(emptystring) + label := C.gtk_label_new(emptystring) + C.gtk_label_set_line_wrap(togtklabel(label), C.FALSE) + // TODO explicitly set line wrap mode as well? + // TODO explicitly disable ellipsizing + return label // TODO left-justify? } |
