summaryrefslogtreecommitdiff
path: root/new/label_unix.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-15 12:14:09 -0400
committerPietro Gagliardi <[email protected]>2015-04-15 12:14:09 -0400
commited22e747b84ac408a531850b9b47711a7618c77d (patch)
tree5d480d958611313bf6cff4e32a6a857947cdcece /new/label_unix.c
parent53f01ca59f9fad0403f7533a5c9911428e510f82 (diff)
Fixed the weird 32-bit Linux/64-bit OpenBSD crash.
Diffstat (limited to 'new/label_unix.c')
-rw-r--r--new/label_unix.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/new/label_unix.c b/new/label_unix.c
index 5eb9817..1f950d3 100644
--- a/new/label_unix.c
+++ b/new/label_unix.c
@@ -20,10 +20,7 @@ uiControl *uiNewLabel(const char *text)
c = uiUnixNewControl(GTK_TYPE_LABEL,
FALSE, FALSE,
"label", text,
- // TODO TODO TODO TODO TODO
- // the presence of this property leads to a segfault on 32-bit linux builds AND 64-bit openbsd builds
- // is it just this property? or is it more than one property at all? and why?
- "xalign", 0,
+ "xalign", 0.0, // note: must be a float constant, otherwise the ... will turn it into an int and we get segfaults on some platforms (thanks ebassi in irc.gimp.net/#gtk+)
// TODO yalign 0?
NULL);