add multiline wrapping in error label (#2465)

This commit is contained in:
Charles Kerr 2022-01-20 17:22:23 -06:00 committed by GitHub
parent 2d916ab9a8
commit f94f7923e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1077,8 +1077,11 @@ Gtk::Widget* DetailsDialog::Impl::info_page_new()
error_lb_ = Gtk::make_managed<Gtk::Label>();
error_lb_->set_selectable(true);
error_lb_->set_ellipsize(Pango::ELLIPSIZE_END);
error_lb_->set_line_wrap(true);
error_lb_->set_lines(10);
t->add_row(row, _("Error:"), *error_lb_);
/* details */
t->add_section_divider(row);
t->add_section_title(row, _("Details"));