[gnome-text-editor] view: use dispose not finalize
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] view: use dispose not finalize
- Date: Fri, 12 Nov 2021 07:28:55 +0000 (UTC)
commit c48a686ced8a14dd0b1d52c0dd9afcafca96f9fb
Author: Christian Hergert <chergert redhat com>
Date: Thu Nov 11 23:17:56 2021 -0800
view: use dispose not finalize
src/editor-source-view.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/editor-source-view.c b/src/editor-source-view.c
index c1354e4..12f7dd5 100644
--- a/src/editor-source-view.c
+++ b/src/editor-source-view.c
@@ -389,7 +389,7 @@ editor_source_view_constructed (GObject *object)
}
static void
-editor_source_view_finalize (GObject *object)
+editor_source_view_dispose (GObject *object)
{
EditorSourceView *self = (EditorSourceView *)object;
@@ -397,7 +397,7 @@ editor_source_view_finalize (GObject *object)
g_clear_object (&self->spelling_menu);
g_clear_pointer (&self->spelling_word, g_free);
- G_OBJECT_CLASS (editor_source_view_parent_class)->finalize (object);
+ G_OBJECT_CLASS (editor_source_view_parent_class)->dispose (object);
}
static void
@@ -445,7 +445,7 @@ editor_source_view_class_init (EditorSourceViewClass *klass)
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->constructed = editor_source_view_constructed;
- object_class->finalize = editor_source_view_finalize;
+ object_class->dispose = editor_source_view_dispose;
object_class->get_property = editor_source_view_get_property;
object_class->set_property = editor_source_view_set_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]