[gtk+] tests: make deprecated functions not warn
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: make deprecated functions not warn
- Date: Wed, 1 May 2013 15:51:09 +0000 (UTC)
commit 2d35f7a8e18c083acd246f22d028cebb88add40a
Author: Benjamin Otte <otte redhat com>
Date: Wed May 1 17:50:14 2013 +0200
tests: make deprecated functions not warn
We still want to test them though.
tests/css/parser/test-css-parser.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/tests/css/parser/test-css-parser.c b/tests/css/parser/test-css-parser.c
index ebe2b2b..1cf2037 100644
--- a/tests/css/parser/test-css-parser.c
+++ b/tests/css/parser/test-css-parser.c
@@ -301,6 +301,7 @@ main (int argc, char **argv)
{
gtk_test_init (&argc, &argv);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
/* Add a bunch of properties so we can test that we parse them properly */
gtk_style_properties_register_property (NULL,
g_param_spec_boolean ("boolean-property",
@@ -321,18 +322,6 @@ main (int argc, char **argv)
0, G_MAXUINT, 0,
G_PARAM_READABLE));
gtk_style_properties_register_property (NULL,
- g_param_spec_float ("float-property",
- "float property",
- "test float properties",
- -G_MAXFLOAT, G_MAXFLOAT, 0.0f,
- G_PARAM_READABLE));
- gtk_style_properties_register_property (NULL,
- g_param_spec_double ("double-property",
- "double property",
- "test double properties",
- -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
- G_PARAM_READABLE));
- gtk_style_properties_register_property (NULL,
g_param_spec_string ("string-property",
"string property",
"test string properties",
@@ -397,6 +386,7 @@ main (int argc, char **argv)
"test uint8 properties",
0, G_MAXUINT8, 0,
G_PARAM_READABLE));
+ G_GNUC_END_IGNORE_DEPRECATIONS;
if (argc < 2)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]