[gtk/wip/exalm/tooltip: 2/2] tooltipwindow: Don't restrict minimum tooltip label length
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/tooltip: 2/2] tooltipwindow: Don't restrict minimum tooltip label length
- Date: Fri, 15 Apr 2022 23:50:07 +0000 (UTC)
commit 7871f1e13be3ad968ffa923a3e979aee194be2be
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Apr 16 03:48:21 2022 +0400
tooltipwindow: Don't restrict minimum tooltip label length
We only care about wrapping at that length, we still want short tooltips
for short labels.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3741
gtk/gtktooltipwindow.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/gtk/gtktooltipwindow.c b/gtk/gtktooltipwindow.c
index 3ebac348d5..82d54533d0 100644
--- a/gtk/gtktooltipwindow.c
+++ b/gtk/gtktooltipwindow.c
@@ -418,7 +418,6 @@ update_label_width (GtkLabel *label)
len = g_utf8_strlen (text, -1);
- gtk_label_set_width_chars (label, MIN (len, 50));
gtk_label_set_max_width_chars (label, MIN (len, 50));
gtk_label_set_wrap (label, TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]