[gtksourceview] test-widget: call gtk_source_init/finalize()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] test-widget: call gtk_source_init/finalize()
- Date: Sat, 28 Oct 2017 12:20:56 +0000 (UTC)
commit 29bec4cd9e59de255499474e07dab1dc4bbd2cf1
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Oct 28 13:53:45 2017 +0200
test-widget: call gtk_source_init/finalize()
Just launching and closing test-widget, I correctly obtain the following
output with gobject-list, with GOBJECT_LIST_FILTER=GtkSource:
Still Alive:
0 objects
And the i18n/l10n works too.
tests/test-widget.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-widget.c b/tests/test-widget.c
index 9758a35..39e0fc3 100644
--- a/tests/test-widget.c
+++ b/tests/test-widget.c
@@ -1086,6 +1086,7 @@ main (int argc, char *argv[])
TestWidget *test_widget;
gtk_init (&argc, &argv);
+ gtk_source_init ();
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (window), 900, 600);
@@ -1098,5 +1099,8 @@ main (int argc, char *argv[])
gtk_widget_show (window);
gtk_main ();
+
+ gtk_source_finalize ();
+
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]