use PANGO_BREAK_WORD_CHAR instead of PANGO_BREAK_WORD so the text cell

2007-06-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkiconview.c (update_text_cell): use PANGO_BREAK_WORD_CHAR
	instead of PANGO_BREAK_WORD so the text cell doesn't overflow the
	wrap-width if there is no whitespace found to break at.
	Fixes bug #446107.


svn path=/trunk/; revision=18112
This commit is contained in:
Michael Natterer 2007-06-12 17:07:48 +00:00 committed by Michael Natterer
parent 8d5fd5168b
commit 49fe3046ae
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2007-06-12 Michael Natterer <mitch@imendio.com>
* gtk/gtkiconview.c (update_text_cell): use PANGO_BREAK_WORD_CHAR
instead of PANGO_BREAK_WORD so the text cell doesn't overflow the
wrap-width if there is no whitespace found to break at.
Fixes bug #446107.
2007-06-12 Kristian Rietveld <kris@imendio.com>
Fix #410815, reported by Lucas Rocha.
@ -93,7 +100,7 @@
* gdk/quartz/gdkdrawable-quartz.c (gdk_quartz_draw_arc): fix
angles by flipping the coordinate system back to its original y
direction. The implementtion is still broken for ellipses, will
direction. The implementation is still broken for ellipses, will
have to simulate them using bezier curves.
2007-06-10 Cody Russell <bratsche@gnome.org>

View File

@ -4912,14 +4912,14 @@ update_text_cell (GtkIconView *icon_view)
if (icon_view->priv->orientation == GTK_ORIENTATION_VERTICAL)
g_object_set (info->cell,
"alignment", PANGO_ALIGN_CENTER,
"wrap-mode", PANGO_WRAP_WORD,
"wrap-mode", PANGO_WRAP_WORD_CHAR,
"xalign", 0.0,
"yalign", 0.0,
NULL);
else
g_object_set (info->cell,
"alignment", PANGO_ALIGN_LEFT,
"wrap-mode", PANGO_WRAP_WORD,
"wrap-mode", PANGO_WRAP_WORD_CHAR,
"xalign", 0.0,
"yalign", 0.0,
NULL);