From 47fd758d01bb7f35af93b5b57e6f9294b6ce61bc Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 22 Jan 2025 16:36:27 -0300 Subject: [PATCH] views/month: Override dispose, not finalize --- src/gui/views/gcal-month-cell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/views/gcal-month-cell.c b/src/gui/views/gcal-month-cell.c index d14ee1fd..3c45facf 100644 --- a/src/gui/views/gcal-month-cell.c +++ b/src/gui/views/gcal-month-cell.c @@ -334,7 +334,7 @@ on_breakpoint_changed_cb (GcalMonthCell *self, */ static void -gcal_month_cell_finalize (GObject *object) +gcal_month_cell_dispose (GObject *object) { GcalMonthCell *self = (GcalMonthCell *)object; @@ -344,7 +344,7 @@ gcal_month_cell_finalize (GObject *object) gcal_clear_date_time (&self->date); g_clear_object (&self->context); - G_OBJECT_CLASS (gcal_month_cell_parent_class)->finalize (object); + G_OBJECT_CLASS (gcal_month_cell_parent_class)->dispose (object); } @@ -394,7 +394,7 @@ gcal_month_cell_class_init (GcalMonthCellClass *klass) GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); - object_class->finalize = gcal_month_cell_finalize; + object_class->dispose = gcal_month_cell_dispose; object_class->set_property = gcal_month_cell_set_property; object_class->get_property = gcal_month_cell_get_property;