]> Pileus Git - ~andy/gtk/commitdiff
Make the label wrap, for compatibility with the old tooltips code. This
authorMatthias Clasen <mclasen@redhat.com>
Tue, 31 Jul 2007 17:38:27 +0000 (17:38 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 31 Jul 2007 17:38:27 +0000 (17:38 +0000)
2007-07-31  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktooltip.c (gtk_tooltip_init): Make the label
        wrap, for compatibility with the old tooltips code. This
        fixes absurdly long tooltips in the color selector.

svn path=/trunk/; revision=18558

ChangeLog
gtk/gtktooltip.c

index 50bbd058379b634bcd823df69633ed69c3a28650..f11fd06a2cccaabf104829591670a379a1e96601 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-31  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktooltip.c (gtk_tooltip_init): Make the label
+       wrap, for compatibility with the old tooltips code. This
+       fixes absurdly long tooltips in the color selector.
+
 2007-07-30  Kristian Rietveld  <kris@imendio.com>
 
        * gtk/gtktreeview.c (gtk_tree_view_set_tooltip_cell): Fix
index 77d465ca903d5166af244047275694651f24c7e4..666ab786899c14d53b4bf8555a3a2ffc33073da4 100644 (file)
@@ -150,6 +150,7 @@ gtk_tooltip_init (GtkTooltip *tooltip)
                      FALSE, FALSE, 0);
 
   tooltip->label = gtk_label_new ("");
+  gtk_label_set_line_wrap (GTK_LABEL (tooltip->label), TRUE);
   gtk_box_pack_start (GTK_BOX (tooltip->box), tooltip->label,
                      FALSE, FALSE, 0);