summaryrefslogtreecommitdiff
path: root/src/ui/labelwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r--src/ui/labelwidget.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index ec324d02..c3c5fbe5 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -504,6 +504,14 @@ void setText_LabelWidget(iLabelWidget *d, const iString *text) {
504 } 504 }
505} 505}
506 506
507void setTextCStr_LabelWidget(iLabelWidget *d, const char *text) {
508 updateTextCStr_LabelWidget(d, text);
509 updateSize_LabelWidget(d);
510 if (isWrapped_LabelWidget(d)) {
511 sizeChanged_LabelWidget_(d);
512 }
513}
514
507void setAlignVisually_LabelWidget(iLabelWidget *d, iBool alignVisual) { 515void setAlignVisually_LabelWidget(iLabelWidget *d, iBool alignVisual) {
508 d->flags.alignVisual = alignVisual; 516 d->flags.alignVisual = alignVisual;
509} 517}
@@ -565,13 +573,6 @@ void updateTextAndResizeWidthCStr_LabelWidget(iLabelWidget *d, const char *text)
565 d->widget.rect.size.x = defaultSize_LabelWidget(d).x; 573 d->widget.rect.size.x = defaultSize_LabelWidget(d).x;
566} 574}
567 575
568void setTextCStr_LabelWidget(iLabelWidget *d, const char *text) {
569 setCStr_String(&d->label, text);
570 set_String(&d->srcLabel, &d->label);
571 replaceVariables_LabelWidget_(d);
572 updateSize_LabelWidget(d);
573}
574
575void setCommand_LabelWidget(iLabelWidget *d, const iString *command) { 576void setCommand_LabelWidget(iLabelWidget *d, const iString *command) {
576 set_String(&d->command, command); 577 set_String(&d->command, command);
577} 578}