summaryrefslogtreecommitdiff
path: root/gtk/gtktextbufferserialize.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-05-22 09:05:58 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-05-22 09:09:55 -0400
commit49cf5142ba9e9542e3e848f0fc55c4fd2eaa9f7f (patch)
tree2b0794b7842a9d9fe093db0389765ad3dd89b739 /gtk/gtktextbufferserialize.c
parentc3a9a20839955a98266463c6fad4f0190feaccc2 (diff)
downloadgtk+-49cf5142ba9e9542e3e848f0fc55c4fd2eaa9f7f.tar.gz
Deprecate GdkColor
It has been replaced by GdkRGBA. Time to make it official. http://bugzilla.gnome.org/show_bug.cgi?id=636695
Diffstat (limited to 'gtk/gtktextbufferserialize.c')
-rw-r--r--gtk/gtktextbufferserialize.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktextbufferserialize.c b/gtk/gtktextbufferserialize.c
index 3976e1f27d..3b77074192 100644
--- a/gtk/gtktextbufferserialize.c
+++ b/gtk/gtktextbufferserialize.c
@@ -50,6 +50,7 @@ typedef struct
static gchar *
serialize_value (GValue *value)
{
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (g_value_type_transformable (value->g_type, G_TYPE_STRING))
{
GValue text_value = G_VALUE_INIT;
@@ -73,6 +74,7 @@ serialize_value (GValue *value)
{
g_warning ("Type %s is not serializable\n", g_type_name (value->g_type));
}
+G_GNUC_END_IGNORE_DEPRECATIONS
return NULL;
}
@@ -81,6 +83,7 @@ static gboolean
deserialize_value (const gchar *str,
GValue *value)
{
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (g_value_type_transformable (G_TYPE_STRING, value->g_type))
{
GValue text_value = G_VALUE_INIT;
@@ -191,6 +194,7 @@ deserialize_value (const gchar *str,
{
g_warning ("Type %s can not be deserialized\n", g_type_name (value->g_type));
}
+G_GNUC_END_IGNORE_DEPRECATIONS
return FALSE;
}