diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-23 13:15:11 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-23 13:15:11 +0300 |
commit | bb401db8b648e6bc3d3f93281031b3164159bf1a (patch) | |
tree | bfb8c6206ab575c6dafe5ba4f345849d8358842a /src/ui/uploadwidget.c | |
parent | 33d93f34884645ddb9f3a019b2d088fd0f4966f1 (diff) |
UploadWidget: Adjusting dialog layout
Diffstat (limited to 'src/ui/uploadwidget.c')
-rw-r--r-- | src/ui/uploadwidget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/uploadwidget.c b/src/ui/uploadwidget.c index b9118ca2..eb8039c3 100644 --- a/src/ui/uploadwidget.c +++ b/src/ui/uploadwidget.c | |||
@@ -111,7 +111,7 @@ void init_UploadWidget(iUploadWidget *d) { | |||
111 | addChild_Widget(headings, iClob(new_LabelWidget("${upload.file.size}", NULL))); | 111 | addChild_Widget(headings, iClob(new_LabelWidget("${upload.file.size}", NULL))); |
112 | d->fileSizeLabel = addChild_Widget(values, iClob(new_LabelWidget("\u2014", NULL))); | 112 | d->fileSizeLabel = addChild_Widget(values, iClob(new_LabelWidget("\u2014", NULL))); |
113 | d->mime = new_InputWidget(0); | 113 | d->mime = new_InputWidget(0); |
114 | setFixedSize_Widget(as_Widget(d->mime), init_I2(50 * gap_UI, -1)); | 114 | setFixedSize_Widget(as_Widget(d->mime), init_I2(70 * gap_UI, -1)); |
115 | addTwoColumnDialogInputField_Widget(headings, values, "${upload.mime}", "upload.mime", iClob(d->mime)); | 115 | addTwoColumnDialogInputField_Widget(headings, values, "${upload.mime}", "upload.mime", iClob(d->mime)); |
116 | } | 116 | } |
117 | /* Token. */ { | 117 | /* Token. */ { |
@@ -139,6 +139,9 @@ void init_UploadWidget(iUploadWidget *d) { | |||
139 | addChild_Widget(w, iClob(buttons)); | 139 | addChild_Widget(w, iClob(buttons)); |
140 | } | 140 | } |
141 | resizeToLargestPage_Widget(tabs); | 141 | resizeToLargestPage_Widget(tabs); |
142 | arrange_Widget(w); | ||
143 | setFixedSize_Widget(as_Widget(d->token), init_I2(width_Widget(tabs) - left_Rect(parent_Widget(d->token)->rect), -1)); | ||
144 | setFlags_Widget(as_Widget(d->token), expand_WidgetFlag, iTrue); | ||
142 | setFocus_Widget(as_Widget(d->input)); | 145 | setFocus_Widget(as_Widget(d->input)); |
143 | setBackupFileName_InputWidget(d->input, "uploadbackup.txt"); | 146 | setBackupFileName_InputWidget(d->input, "uploadbackup.txt"); |
144 | } | 147 | } |