Make the label wrap, for compatibility with the old tooltips code. This

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
This commit is contained in:
Matthias Clasen 2007-07-31 17:38:27 +00:00 committed by Matthias Clasen
parent bed2f0e38c
commit b11262594c
2 changed files with 7 additions and 0 deletions

View File

@ -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

View 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);