Decided that uiLabels should be top-aligned; implemented on GTK+. Other backends don't need changing.
This commit is contained in:
parent
1034978a2e
commit
b3fec90537
3
TODO.md
3
TODO.md
|
@ -35,3 +35,6 @@ ultimately:
|
||||||
- add some sort of runtime type checking
|
- add some sort of runtime type checking
|
||||||
- MAYBE readd lifetime handling/destruction blocking
|
- MAYBE readd lifetime handling/destruction blocking
|
||||||
- figure out how to integrate leak checking into the source tree
|
- figure out how to integrate leak checking into the source tree
|
||||||
|
|
||||||
|
notes to self
|
||||||
|
- explicitly document label position at top-left corner
|
||||||
|
|
|
@ -38,7 +38,7 @@ uiLabel *uiNewLabel(const char *text)
|
||||||
FALSE, FALSE, onDestroy, l,
|
FALSE, FALSE, onDestroy, l,
|
||||||
"label", text,
|
"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+)
|
"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);
|
NULL);
|
||||||
|
|
||||||
l->widget = GTK_WIDGET(uiControlHandle(uiControl(l)));
|
l->widget = GTK_WIDGET(uiControlHandle(uiControl(l)));
|
||||||
|
|
Loading…
Reference in New Issue