[gtk+] tooltip: fix line wrapping
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tooltip: fix line wrapping
- Date: Tue, 7 Oct 2014 02:34:44 +0000 (UTC)
commit 62da080bd0efe5894b66e38fc55221a5c2f0ea9f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Oct 5 09:07:58 2014 -0500
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.
https://bugzilla.gnome.org/show_bug.cgi?id=737929
gtk/gtktooltip.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 3e585e3..103944f 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]