diff options
author | Stefano Karapetsas <[email protected]> | 2013-11-04 12:46:45 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-11-04 12:46:45 +0100 |
commit | 76265841b74cad78a60e5f960d37beb8ba854e2e (patch) | |
tree | 17e830fe5d6acbbcc8e7497fa27dcdde42933f2c /tests | |
parent | c0bd4250ef3ceda457aaa492cc950b215f5db06e (diff) | |
download | pluma-76265841b74cad78a60e5f960d37beb8ba854e2e.tar.bz2 pluma-76265841b74cad78a60e5f960d37beb8ba854e2e.tar.xz |
Fix some deprecations
Diffstat (limited to 'tests')
-rw-r--r-- | tests/document-input-stream.c | 2 | ||||
-rw-r--r-- | tests/document-loader.c | 2 | ||||
-rw-r--r-- | tests/document-output-stream.c | 2 | ||||
-rw-r--r-- | tests/document-saver.c | 2 | ||||
-rw-r--r-- | tests/smart-converter.c | 2 |
5 files changed, 10 insertions, 0 deletions
diff --git a/tests/document-input-stream.c b/tests/document-input-stream.c index 3a796a34..930912e6 100644 --- a/tests/document-input-stream.c +++ b/tests/document-input-stream.c @@ -140,7 +140,9 @@ test_consecutive_multibyte_big_read () int main (int argc, char *argv[]) { +#if !GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif g_test_init (&argc, &argv, NULL); g_test_add_func ("/document-input-stream/empty", test_empty); diff --git a/tests/document-loader.c b/tests/document-loader.c index 42f9b638..a3e6a57b 100644 --- a/tests/document-loader.c +++ b/tests/document-loader.c @@ -238,7 +238,9 @@ test_begin_new_line_detection () int main (int argc, char *argv[]) { +#if !GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif g_test_init (&argc, &argv, NULL); pluma_prefs_manager_app_init (); diff --git a/tests/document-output-stream.c b/tests/document-output-stream.c index 033cf49a..b6a474e2 100644 --- a/tests/document-output-stream.c +++ b/tests/document-output-stream.c @@ -119,7 +119,9 @@ test_big_char () int main (int argc, char *argv[]) { +#if !GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif g_test_init (&argc, &argv, NULL); pluma_prefs_manager_app_init (); diff --git a/tests/document-saver.c b/tests/document-saver.c index 870e2498..707e0984 100644 --- a/tests/document-saver.c +++ b/tests/document-saver.c @@ -687,7 +687,9 @@ int main (int argc, gboolean have_unowned; gboolean have_unowned_group; +#if !GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif g_test_init (&argc, &argv, NULL); pluma_prefs_manager_app_init (); diff --git a/tests/smart-converter.c b/tests/smart-converter.c index bef2a110..4f22c68c 100644 --- a/tests/smart-converter.c +++ b/tests/smart-converter.c @@ -341,7 +341,9 @@ test_guessed () int main (int argc, char *argv[]) { +#if !GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif g_test_init (&argc, &argv, NULL); g_test_add_func ("/smart-converter/utf8-utf8", test_utf8_utf8); |