display: Wrap frame subtitle label

Currently, the display window is very wide due to the subtitle label.
This patch adds line wrapping to the label and sets xalign to 0.

https://bugzilla.gnome.org/show_bug.cgi?id=790449
This commit is contained in:
Elias Entrup 2017-11-15 11:26:33 +01:00 committed by Rui Matos
parent 96ac43b527
commit 154101448a

View file

@ -643,6 +643,8 @@ make_frame (const gchar *title, const gchar *subtitle)
if (subtitle)
{
label = gtk_label_new (subtitle);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_container_add (GTK_CONTAINER (vbox), label);
gtk_style_context_add_class (gtk_widget_get_style_context (label),