Commit 62da080b authored by Michael Catanzaro's avatar Michael Catanzaro Committed by Matthias Clasen

tooltip: fix line wrapping

We enable line wrap on the internal GtkLabel, but nowadays this does
nothing unless we also set a max number of characters.
parent ba6522d3
......@@ -205,6 +205,7 @@ gtk_tooltip_init (GtkTooltip *tooltip)
label = gtk_label_new ("");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
tooltip->window = window;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment