[gtksourceview/wip/chergert/snippets] tests: call gtk_init() from test-snippets



commit 727a490feb5ddf5fdd9764c0dcc3a284a105614d
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 29 08:33:03 2020 -0800

    tests: call gtk_init() from test-snippets
    
    We don't need this now, but there is no guarantee that gtk_source_init()
    wont expect it to have been already called.

 tests/test-snippets.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/test-snippets.c b/tests/test-snippets.c
index 4ba45b60..14d68201 100644
--- a/tests/test-snippets.c
+++ b/tests/test-snippets.c
@@ -35,6 +35,7 @@ main (gint argc,
        GtkSourceSnippet *snippet;
        const gchar **groups;
 
+       gtk_init ();
        gtk_source_init ();
 
        mgr = gtk_source_snippet_manager_get_default ();


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