Merge pull request #49 from PaulCombal/fix-description

Fix for long descriptions
This commit is contained in:
PaulCombal 2020-01-10 10:38:17 +01:00 committed by GitHub
commit 6523ebe936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,9 @@ AchievementBoxRow::AchievementBoxRow(const Achievement_t& data)
set_size_request(-1, 80);
set_missing();
// https://developer.gnome.org/Labels/#Labels_in_resizable_windows
desc_label->set_line_wrap();
desc_label->set_width_chars(1); // Not sure what n_chars is
title_label->set_markup(ach_title_text);
more_info_label->set_markup("<b>Additional information</b>");
more_info_button->set_popover(*popover_menu);