From 9ae96491886716ba56ba87442dd9a93dcf21e027 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 6 Dec 2012 02:55:22 +0100 Subject: stylecontext: Deprecate gtk_style_context_get_font() This is for a very simple reason: The getter is returning a const value and the font isn't const anymore. So we need to store the font description somewhere but we can't reuse it as it's changing all the time (yay animations, yay inherited values). Sucks. So keep the hack in here but deprecate the function. --- gtk/gtkthemingengine.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk/gtkthemingengine.h') diff --git a/gtk/gtkthemingengine.h b/gtk/gtkthemingengine.h index 0bdc3a13cf..13e1927c7e 100644 --- a/gtk/gtkthemingengine.h +++ b/gtk/gtkthemingengine.h @@ -249,6 +249,7 @@ void gtk_theming_engine_get_margin (GtkThemingEngine *engine, GtkStateFlags state, GtkBorder *margin); +GDK_DEPRECATED_IN_3_8_FOR(gtk_theming_engine_get) const PangoFontDescription * gtk_theming_engine_get_font (GtkThemingEngine *engine, GtkStateFlags state); -- cgit v1.2.1