forked from AuroraMiddleware/gtk
Merge branch 'wip/exalm/tooltip' into 'main'
tooltipwindow: Don't restrict minimum tooltip label length Closes #3741 See merge request GNOME/gtk!4640
This commit is contained in:
commit
da5bb6ff22
@ -388,8 +388,6 @@ gtk_tooltip_window_class_init (GtkTooltipWindowClass *klass)
|
||||
gtk_widget_class_bind_template_child (widget_class, GtkTooltipWindow, box);
|
||||
gtk_widget_class_bind_template_child (widget_class, GtkTooltipWindow, image);
|
||||
gtk_widget_class_bind_template_child (widget_class, GtkTooltipWindow, label);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "tooltip");
|
||||
}
|
||||
|
||||
static void
|
||||
@ -420,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user