themingengine: Deprecate

This commit is contained in:
Benjamin Otte
2014-06-15 16:05:16 +02:00
parent 9ca04c0f9d
commit b59e6f1948
5 changed files with 88 additions and 34 deletions

View File

@ -562,6 +562,8 @@ theming_engine_value_parse (GtkCssParser *parser,
GtkThemingEngine *engine;
char *str;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (_gtk_css_parser_try (parser, "none", TRUE))
{
g_value_set_object (value, gtk_theming_engine_load (NULL));
@ -587,6 +589,8 @@ theming_engine_value_parse (GtkCssParser *parser,
g_value_set_object (value, engine);
g_free (str);
return TRUE;
G_GNUC_END_IGNORE_DEPRECATIONS
}
static void
@ -1021,10 +1025,16 @@ gtk_css_style_funcs_init (void)
string_value_parse,
string_value_print,
NULL);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
register_conversion_function (GTK_TYPE_THEMING_ENGINE,
theming_engine_value_parse,
theming_engine_value_print,
NULL);
G_GNUC_END_IGNORE_DEPRECATIONS
register_conversion_function (GTK_TYPE_BORDER,
border_value_parse,
border_value_print,