Decided that uiLabels should be top-aligned; implemented on GTK+. Other backends don't need changing.

This commit is contained in:
Pietro Gagliardi 2015-04-30 22:44:08 -04:00
parent 1034978a2e
commit b3fec90537
2 changed files with 4 additions and 1 deletions

View File

@ -35,3 +35,6 @@ ultimately:
- add some sort of runtime type checking
- MAYBE readd lifetime handling/destruction blocking
- figure out how to integrate leak checking into the source tree
notes to self
- explicitly document label position at top-left corner

View File

@ -38,7 +38,7 @@ uiLabel *uiNewLabel(const char *text)
FALSE, FALSE, onDestroy, l,
"label", text,
"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?
"yalign", 0.0,
NULL);
l->widget = GTK_WIDGET(uiControlHandle(uiControl(l)));