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

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