[gtksourceview/wip/search: 3/3] test-search-ui: s/finalize/dispose/



commit 9451ddd593df5937230fbd6c34a3a4ddfa46c5f0
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jul 4 21:18:24 2013 +0200

    test-search-ui: s/finalize/dispose/

 tests/test-search-ui.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/test-search-ui.c b/tests/test-search-ui.c
index 714538e..690db48 100644
--- a/tests/test-search-ui.c
+++ b/tests/test-search-ui.c
@@ -276,13 +276,13 @@ wrap_around_toggled_cb (TestSearchUI    *search,
 }
 
 static void
-test_search_ui_finalize (GObject *object)
+test_search_ui_dispose (GObject *object)
 {
        TestSearchUI *search = TEST_SEARCH_UI (object);
 
-       g_object_unref (search->priv->source_buffer);
+       g_clear_object (&search->priv->source_buffer);
 
-       G_OBJECT_CLASS (test_search_ui_parent_class)->finalize (object);
+       G_OBJECT_CLASS (test_search_ui_parent_class)->dispose (object);
 }
 
 static void
@@ -291,7 +291,7 @@ test_search_ui_class_init (TestSearchUIClass *klass)
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
        GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
 
-       object_class->finalize = test_search_ui_finalize;
+       object_class->dispose = test_search_ui_dispose;
 
        gtk_widget_class_set_template_from_resource (widget_class,
                                                     "/org/gnome/gtksourceview/tests/ui/test-search-ui.ui");


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