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:
parent
96ac43b527
commit
154101448a
1 changed files with 2 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue