[evolution-patches] [Calendar] line wrap in week view



Hi

The summary in calendar week view is not wraped when the event is
edited (summary changed/ event moved to new time) .

Attached a patch for this issue. Please review.

Thanks
Johnny
Index: widgets/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/ChangeLog,v
retrieving revision 1.154
diff -u -p -r1.154 ChangeLog
--- widgets/ChangeLog	10 Jan 2006 08:16:25 -0000	1.154
+++ widgets/ChangeLog	11 Jan 2006 07:53:06 -0000
@@ -1,3 +1,8 @@
+2006-01-11  Johnny Jacob  <johnnyjacob#gmail.com>
+
+	* text/e-text.c (e_text_set_property): Add the width to
+	the pango layout.
+
 2006-01-10  Simon Zheng  <simon zheng sun com>
 
 	* menus/gal-view-instance.c:
Index: widgets/text/e-text.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/text/e-text.c,v
retrieving revision 1.164
diff -u -p -r1.164 e-text.c
--- widgets/text/e-text.c	23 Jun 2005 09:11:11 -0000	1.164
+++ widgets/text/e-text.c	11 Jan 2006 07:53:39 -0000
@@ -758,9 +758,11 @@ e_text_set_property (GObject *object,
 	case PROP_CLIP_WIDTH:
 		text->clip_width = fabs (g_value_get_double (value));
 		calc_ellipsis (text);
-		if ( text->line_wrap )
+		if ( text->line_wrap ) {
+			if (text->layout)
+				pango_layout_set_width (text->layout, text->clip_width < 0 ? -1 : text->clip_width * PANGO_SCALE);
 			text->needs_split_into_lines = 1;
-		else {
+		} else {
 			text->needs_calc_height = 1;
 		}
 		needs_reflow = 1;





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]