Blame SOURCES/evolution-3.28.5-ecalendaritem-settings.patch

6176f7
diff -up evolution-3.28.5/src/e-util/e-calendar-item.c.ecalendaritem-settings evolution-3.28.5/src/e-util/e-calendar-item.c
6176f7
--- evolution-3.28.5/src/e-util/e-calendar-item.c.ecalendaritem-settings	2018-07-30 15:37:05.000000000 +0200
6176f7
+++ evolution-3.28.5/src/e-util/e-calendar-item.c	2020-09-30 15:16:45.798634705 +0200
6176f7
@@ -45,6 +45,7 @@ static const gint e_calendar_item_days_i
6176f7
   e_calendar_item_days_in_month[month] + (((month) == 1 \
6176f7
   && ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))) ? 1 : 0)
6176f7
 
6176f7
+static void	e_calendar_item_constructed	(GObject *object);
6176f7
 static void	e_calendar_item_dispose		(GObject *object);
6176f7
 static void	e_calendar_item_get_property	(GObject *object,
6176f7
 						 guint property_id,
6176f7
@@ -264,6 +265,7 @@ e_calendar_item_class_init (ECalendarIte
6176f7
 	GnomeCanvasItemClass *item_class;
6176f7
 
6176f7
 	object_class = G_OBJECT_CLASS (class);
6176f7
+	object_class->constructed = e_calendar_item_constructed;
6176f7
 	object_class->dispose = e_calendar_item_dispose;
6176f7
 	object_class->get_property = e_calendar_item_get_property;
6176f7
 	object_class->set_property = e_calendar_item_set_property;
6176f7
@@ -637,6 +639,16 @@ e_calendar_item_init (ECalendarItem *cal
6176f7
 }
6176f7
 
6176f7
 static void
6176f7
+e_calendar_item_constructed (GObject *object)
6176f7
+{
6176f7
+	ECalendarItem *calitem = E_CALENDAR_ITEM (object);
6176f7
+
6176f7
+	G_OBJECT_CLASS (e_calendar_item_parent_class)->constructed (object);
6176f7
+
6176f7
+	e_extensible_load_extensions (E_EXTENSIBLE (calitem));
6176f7
+}
6176f7
+
6176f7
+static void
6176f7
 e_calendar_item_dispose (GObject *object)
6176f7
 {
6176f7
 	ECalendarItem *calitem;
6176f7
@@ -787,28 +799,32 @@ e_calendar_item_set_property (GObject *o
6176f7
 		dvalue = g_value_get_double (value);
6176f7
 		if (calitem->x1 != dvalue) {
6176f7
 			calitem->x1 = dvalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_Y1:
6176f7
 		dvalue = g_value_get_double (value);
6176f7
 		if (calitem->y1 != dvalue) {
6176f7
 			calitem->y1 = dvalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_X2:
6176f7
 		dvalue = g_value_get_double (value);
6176f7
 		if (calitem->x2 != dvalue) {
6176f7
 			calitem->x2 = dvalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_Y2:
6176f7
 		dvalue = g_value_get_double (value);
6176f7
 		if (calitem->y2 != dvalue) {
6176f7
 			calitem->y2 = dvalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_FONT_DESC:
6176f7
@@ -816,21 +832,24 @@ e_calendar_item_set_property (GObject *o
6176f7
 		if (calitem->font_desc)
6176f7
 			pango_font_description_free (calitem->font_desc);
6176f7
 		calitem->font_desc = pango_font_description_copy (font_desc);
6176f7
-		gnome_canvas_item_request_update (item);
6176f7
+		if (item->canvas)
6176f7
+			gnome_canvas_item_request_update (item);
6176f7
 		return;
6176f7
 	case PROP_WEEK_NUMBER_FONT_DESC:
6176f7
 		font_desc = g_value_get_boxed (value);
6176f7
 		if (calitem->week_number_font_desc)
6176f7
 			pango_font_description_free (calitem->week_number_font_desc);
6176f7
 		calitem->week_number_font_desc = pango_font_description_copy (font_desc);
6176f7
-		gnome_canvas_item_request_update (item);
6176f7
+		if (item->canvas)
6176f7
+			gnome_canvas_item_request_update (item);
6176f7
 		return;
6176f7
 	case PROP_MINIMUM_ROWS:
6176f7
 		ivalue = g_value_get_int (value);
6176f7
 		ivalue = MAX (1, ivalue);
6176f7
 		if (calitem->min_rows != ivalue) {
6176f7
 			calitem->min_rows = ivalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_MINIMUM_COLUMNS:
6176f7
@@ -838,35 +857,40 @@ e_calendar_item_set_property (GObject *o
6176f7
 		ivalue = MAX (1, ivalue);
6176f7
 		if (calitem->min_cols != ivalue) {
6176f7
 			calitem->min_cols = ivalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_MAXIMUM_ROWS:
6176f7
 		ivalue = g_value_get_int (value);
6176f7
 		if (calitem->max_rows != ivalue) {
6176f7
 			calitem->max_rows = ivalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_MAXIMUM_COLUMNS:
6176f7
 		ivalue = g_value_get_int (value);
6176f7
 		if (calitem->max_cols != ivalue) {
6176f7
 			calitem->max_cols = ivalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_WEEK_START_DAY:
6176f7
 		ivalue = g_value_get_enum (value);
6176f7
 		if (calitem->week_start_day != ivalue) {
6176f7
 			calitem->week_start_day = ivalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_SHOW_WEEK_NUMBERS:
6176f7
 		bvalue = g_value_get_boolean (value);
6176f7
 		if (calitem->show_week_numbers != bvalue) {
6176f7
 			calitem->show_week_numbers = bvalue;
6176f7
-			gnome_canvas_item_request_update (item);
6176f7
+			if (item->canvas)
6176f7
+				gnome_canvas_item_request_update (item);
6176f7
 		}
6176f7
 		return;
6176f7
 	case PROP_KEEP_WDAYS_ON_WEEKNUM_CLICK:
6176f7
@@ -908,8 +932,6 @@ e_calendar_item_realize (GnomeCanvasItem
6176f7
 	calitem = E_CALENDAR_ITEM (item);
6176f7
 
6176f7
 	e_calendar_item_style_updated (GTK_WIDGET (item->canvas), calitem);
6176f7
-
6176f7
-	e_extensible_load_extensions (E_EXTENSIBLE (calitem));
6176f7
 }
6176f7
 
6176f7
 static void