API: Deprecate functions to register custom CSS properties
We should slowly transition code to using the GTK-provided CSS. So here we go.
This commit is contained in:
@ -211,6 +211,8 @@ gtk_css_custom_property_create_initial_value (GParamSpec *pspec)
|
|||||||
* </note>
|
* </note>
|
||||||
*
|
*
|
||||||
* Since: 3.0
|
* Since: 3.0
|
||||||
|
*
|
||||||
|
* Deprecated: 3.8: Code should use the default properties provided by CSS.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_theming_engine_register_property (const gchar *name_space,
|
gtk_theming_engine_register_property (const gchar *name_space,
|
||||||
@ -260,6 +262,8 @@ gtk_theming_engine_register_property (const gchar *name_space,
|
|||||||
* a theming engine, you want to use that function instead.
|
* a theming engine, you want to use that function instead.
|
||||||
*
|
*
|
||||||
* Since: 3.0
|
* Since: 3.0
|
||||||
|
*
|
||||||
|
* Deprecated: 3.8: Code should use the default properties provided by CSS.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_style_properties_register_property (GtkStylePropertyParser parse_func,
|
gtk_style_properties_register_property (GtkStylePropertyParser parse_func,
|
||||||
@ -303,6 +307,9 @@ gtk_style_properties_register_property (GtkStylePropertyParser parse_func,
|
|||||||
* Returns: %TRUE if the property is registered, %FALSE otherwise
|
* Returns: %TRUE if the property is registered, %FALSE otherwise
|
||||||
*
|
*
|
||||||
* Since: 3.0
|
* Since: 3.0
|
||||||
|
*
|
||||||
|
* Deprecated: 3.8: This code could only look up custom properties and
|
||||||
|
* those are deprecated.
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
gtk_style_properties_lookup_property (const gchar *property_name,
|
gtk_style_properties_lookup_property (const gchar *property_name,
|
||||||
|
@ -66,8 +66,10 @@ typedef gboolean (* GtkStylePropertyParser) (const gchar *string,
|
|||||||
GType gtk_style_properties_get_type (void) G_GNUC_CONST;
|
GType gtk_style_properties_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
/* Next 2 are implemented in gtkcsscustomproperty.c */
|
/* Next 2 are implemented in gtkcsscustomproperty.c */
|
||||||
|
GDK_DEPRECATED_IN_3_8
|
||||||
void gtk_style_properties_register_property (GtkStylePropertyParser parse_func,
|
void gtk_style_properties_register_property (GtkStylePropertyParser parse_func,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
|
GDK_DEPRECATED_IN_3_8
|
||||||
gboolean gtk_style_properties_lookup_property (const gchar *property_name,
|
gboolean gtk_style_properties_lookup_property (const gchar *property_name,
|
||||||
GtkStylePropertyParser *parse_func,
|
GtkStylePropertyParser *parse_func,
|
||||||
GParamSpec **pspec);
|
GParamSpec **pspec);
|
||||||
|
@ -182,6 +182,7 @@ struct _GtkThemingEngineClass
|
|||||||
GType gtk_theming_engine_get_type (void) G_GNUC_CONST;
|
GType gtk_theming_engine_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
/* function implemented in gtkcsscustomproperty.c */
|
/* function implemented in gtkcsscustomproperty.c */
|
||||||
|
GDK_DEPRECATED_IN_3_8
|
||||||
void gtk_theming_engine_register_property (const gchar *name_space,
|
void gtk_theming_engine_register_property (const gchar *name_space,
|
||||||
GtkStylePropertyParser parse_func,
|
GtkStylePropertyParser parse_func,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
|
Reference in New Issue
Block a user