Commit 63e83807 authored by Benoît Minisini's avatar Benoît Minisini
Browse files

Widget tooltips now handle newlines and linefeeds the same way as in Qt.

[GB.GTK]
* BUG: Widget tooltips now handle newlines and linefeeds the same way as in Qt.

[GB.GTK3]
* BUG: Widget tooltips now handle newlines and linefeeds the same way as in Qt.
parent a8f94dc4
Pipeline #194874299 passed with stage
in 21 minutes and 7 seconds
......@@ -740,7 +740,7 @@ void gControl::setTooltip(char *vl)
if (_tooltip)
{
pango = gt_html_to_pango_string(_tooltip, -1, false);
pango = gt_html_to_pango_string(_tooltip, -1, true);
gtk_widget_set_tooltip_markup(border, pango);
g_free(pango);
}
......
......@@ -1152,6 +1152,12 @@ char *gt_html_to_pango_string(const char *html, int len_html, bool newline_are_b
continue;
}
if (c == '\r')
{
add_space(pango);
continue;
}
if (c == '&')
{
const char *entity_start = ++p;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment