summaryrefslogtreecommitdiff
path: root/gtkcalls_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-13 18:05:07 -0400
committerPietro Gagliardi <[email protected]>2014-04-13 18:05:07 -0400
commitfb50badf00db0ba2da8a99aa75b489c620f8a971 (patch)
treebe2cf962c861c650607589cbb279364ccfd3107a /gtkcalls_unix.go
parente4c27a4a725c898ffb674f5202295dc96ce05ff1 (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.go6
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?
}