X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkcsscustomproperty.c;h=4c0437983ff59fdfcf54e2170c208700a903e284;hb=fa4878979e0a72890ca577a210ccd7cf6291dbf0;hp=6d9230f90fb9b53eda32f26d9d019edf791232a8;hpb=4f9a8e6b3d16f3a12aade5e40f45e02094545f1f;p=~andy%2Fgtk diff --git a/gtk/gtkcsscustomproperty.c b/gtk/gtkcsscustomproperty.c index 6d9230f90..4c0437983 100644 --- a/gtk/gtkcsscustomproperty.c +++ b/gtk/gtkcsscustomproperty.c @@ -26,19 +26,24 @@ #include "gtkcssstylefuncsprivate.h" #include "gtkcsstypedvalueprivate.h" #include "gtkstylepropertiesprivate.h" -#include "gtksymboliccolor.h" #include "gtkthemingengine.h" +#include "deprecated/gtksymboliccolor.h" + G_DEFINE_TYPE (GtkCssCustomProperty, _gtk_css_custom_property, GTK_TYPE_CSS_STYLE_PROPERTY) static GType gtk_css_custom_property_get_specified_type (GParamSpec *pspec) { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + if (pspec->value_type == GDK_TYPE_RGBA || pspec->value_type == GDK_TYPE_COLOR) return GTK_TYPE_SYMBOLIC_COLOR; else return pspec->value_type; + + G_GNUC_END_IGNORE_DEPRECATIONS; } static GtkCssValue * @@ -206,6 +211,8 @@ gtk_css_custom_property_create_initial_value (GParamSpec *pspec) * * * Since: 3.0 + * + * Deprecated: 3.8: Code should use the default properties provided by CSS. **/ void gtk_theming_engine_register_property (const gchar *name_space, @@ -255,6 +262,8 @@ gtk_theming_engine_register_property (const gchar *name_space, * a theming engine, you want to use that function instead. * * Since: 3.0 + * + * Deprecated: 3.8: Code should use the default properties provided by CSS. **/ void gtk_style_properties_register_property (GtkStylePropertyParser parse_func, @@ -298,6 +307,9 @@ gtk_style_properties_register_property (GtkStylePropertyParser parse_func, * Returns: %TRUE if the property is registered, %FALSE otherwise * * Since: 3.0 + * + * Deprecated: 3.8: This code could only look up custom properties and + * those are deprecated. **/ gboolean gtk_style_properties_lookup_property (const gchar *property_name,